Lines Matching refs:attr
32 const pthread_barrierattr* attr = _attr != NULL in pthread_barrier_init() local
35 if (barrier == NULL || attr == NULL || count < 1) in pthread_barrier_init()
38 barrier->flags = attr->process_shared ? BARRIER_FLAG_SHARED : 0; in pthread_barrier_init()
146 pthread_barrierattr* attr = (pthread_barrierattr*)malloc( in pthread_barrierattr_init() local
149 if (attr == NULL) in pthread_barrierattr_init()
152 *attr = pthread_barrierattr_default; in pthread_barrierattr_init()
153 *_attr = attr; in pthread_barrierattr_init()
162 pthread_barrierattr* attr = _attr != NULL ? *_attr : NULL; in pthread_barrierattr_destroy() local
164 if (attr == NULL) in pthread_barrierattr_destroy()
167 free(attr); in pthread_barrierattr_destroy()
176 pthread_barrierattr* attr; in pthread_barrierattr_getpshared() local
178 if (_attr == NULL || (attr = *_attr) == NULL || shared == NULL) in pthread_barrierattr_getpshared()
181 *shared = attr->process_shared in pthread_barrierattr_getpshared()
191 pthread_barrierattr* attr; in pthread_barrierattr_setpshared() local
193 if (_attr == NULL || (attr = *_attr) == NULL in pthread_barrierattr_setpshared()
199 attr->process_shared = shared == PTHREAD_PROCESS_SHARED; in pthread_barrierattr_setpshared()