Lines Matching refs:attr
65 #define COND_SET_CLOCK(attr, c) ((attr) | (c << 1)) argument
67 int pthread_condattr_init(pthread_condattr_t* attr) { in pthread_condattr_init() argument
68 *attr = 0; in pthread_condattr_init()
69 *attr |= PTHREAD_PROCESS_PRIVATE; in pthread_condattr_init()
70 *attr |= (CLOCK_REALTIME << 1); in pthread_condattr_init()
74 int pthread_condattr_getpshared(const pthread_condattr_t* attr, int* pshared) { in pthread_condattr_getpshared() argument
75 *pshared = static_cast<int>(COND_IS_SHARED(*attr)); in pthread_condattr_getpshared()
79 int pthread_condattr_setpshared(pthread_condattr_t* attr, int pshared) { in pthread_condattr_setpshared() argument
84 *attr |= pshared; in pthread_condattr_setpshared()
88 int pthread_condattr_getclock(const pthread_condattr_t* attr, clockid_t* clock) { in pthread_condattr_getclock() argument
89 *clock = COND_GET_CLOCK(*attr); in pthread_condattr_getclock()
93 int pthread_condattr_setclock(pthread_condattr_t* attr, clockid_t clock) { in pthread_condattr_setclock() argument
98 *attr = COND_SET_CLOCK(*attr, clock); in pthread_condattr_setclock()
102 int pthread_condattr_destroy(pthread_condattr_t* attr) { in pthread_condattr_destroy() argument
103 *attr = 0xdeada11d; in pthread_condattr_destroy()
136 int pthread_cond_init(pthread_cond_t* cond_interface, const pthread_condattr_t* attr) { in pthread_cond_init() argument
140 if (attr != nullptr) { in pthread_cond_init()
141 init_state = (*attr & COND_FLAGS_MASK); in pthread_cond_init()