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