Lines Matching refs:attr
134 pthread_attr_t* attr; in uv_thread_create_ex() local
149 attr = NULL; in uv_thread_create_ex()
162 attr = &attr_storage; in uv_thread_create_ex()
164 if (pthread_attr_init(attr)) in uv_thread_create_ex()
167 if (pthread_attr_setstacksize(attr, stack_size)) in uv_thread_create_ex()
172 err = pthread_create(tid, attr, f.out, arg); in uv_thread_create_ex()
174 if (attr != NULL) in uv_thread_create_ex()
175 pthread_attr_destroy(attr); in uv_thread_create_ex()
299 pthread_mutexattr_t attr; in uv_mutex_init()
302 if (pthread_mutexattr_init(&attr)) in uv_mutex_init()
305 if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK)) in uv_mutex_init()
308 err = pthread_mutex_init(mutex, &attr); in uv_mutex_init()
310 if (pthread_mutexattr_destroy(&attr)) in uv_mutex_init()
319 pthread_mutexattr_t attr; in uv_mutex_init_recursive() local
322 if (pthread_mutexattr_init(&attr)) in uv_mutex_init_recursive()
325 if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)) in uv_mutex_init_recursive()
328 err = pthread_mutex_init(mutex, &attr); in uv_mutex_init_recursive()
330 if (pthread_mutexattr_destroy(&attr)) in uv_mutex_init_recursive()
718 pthread_condattr_t attr; in uv_cond_init() local
721 err = pthread_condattr_init(&attr); in uv_cond_init()
725 err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in uv_cond_init()
729 err = pthread_cond_init(cond, &attr); in uv_cond_init()
733 err = pthread_condattr_destroy(&attr); in uv_cond_init()
742 pthread_condattr_destroy(&attr); in uv_cond_init()