Searched refs:mutex_attr (Results 1 – 4 of 4) sorted by relevance
260 pthread_mutexattr_t mutex_attr; \261 int error_code = pthread_mutexattr_init(&mutex_attr); \264 error_code = pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); \267 error_code = pthread_mutex_init(mutex, &mutex_attr); \270 error_code = pthread_mutexattr_destroy(&mutex_attr); \
226 pthread_mutexattr_t mutex_attr; \227 int error_code = pthread_mutexattr_init(&mutex_attr); \231 error_code = pthread_mutexattr_settype(&mutex_attr, \236 error_code = pthread_mutex_init(mutex, &mutex_attr); \240 error_code = pthread_mutexattr_destroy(&mutex_attr); \
340 pthread_mutexattr_t mutex_attr; in sw_discovery_init() local371 ASSERT_SUCCESS(pthread_mutexattr_init(&mutex_attr)); in sw_discovery_init()372 pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); in sw_discovery_init()373 ASSERT_SUCCESS(pthread_mutex_init(&(*self)->mutex, &mutex_attr)); in sw_discovery_init()374 ASSERT_SUCCESS(pthread_mutex_init(&(*self)->salt_mutex, &mutex_attr)); in sw_discovery_init()
364 pthread_mutexattr_t mutex_attr; in sdref_new() local387 ASSERT_SUCCESS(pthread_mutexattr_init(&mutex_attr)); in sdref_new()388 pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); in sdref_new()389 ASSERT_SUCCESS(pthread_mutex_init(&sdref->mutex, &mutex_attr)); in sdref_new()