Lines Matching refs:cond
551 uv_cond_t cond; member
573 if ((err = uv_cond_init(&sem->cond)) != 0) { in uv__custom_sem_init()
589 uv_cond_destroy(&sem->cond); in uv__custom_sem_destroy()
602 uv_cond_signal(&sem->cond); /* Release one to replace us. */ in uv__custom_sem_post()
613 uv_cond_wait(&sem->cond, &sem->mutex); in uv__custom_sem_wait()
732 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument
733 return UV__ERR(pthread_cond_init(cond, NULL)); in uv_cond_init()
738 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument
750 err = pthread_cond_init(cond, &attr); in uv_cond_init()
761 pthread_cond_destroy(cond); in uv_cond_init()
769 void uv_cond_destroy(uv_cond_t* cond) { in uv_cond_destroy() argument
788 err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts); in uv_cond_destroy()
799 if (pthread_cond_destroy(cond)) in uv_cond_destroy()
803 void uv_cond_signal(uv_cond_t* cond) { in uv_cond_signal() argument
804 if (pthread_cond_signal(cond)) in uv_cond_signal()
808 void uv_cond_broadcast(uv_cond_t* cond) { in uv_cond_broadcast() argument
809 if (pthread_cond_broadcast(cond)) in uv_cond_broadcast()
815 void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex) { in uv_cond_wait() argument
819 r = pthread_cond_wait(cond, mutex); in uv_cond_wait()
834 void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex) { in uv_cond_wait() argument
835 if (pthread_cond_wait(cond, mutex)) in uv_cond_wait()
841 int uv_cond_timedwait(uv_cond_t* cond, uv_mutex_t* mutex, uint64_t timeout) { in uv_cond_timedwait() argument
851 r = pthread_cond_timedwait_relative_np(cond, mutex, &ts); in uv_cond_timedwait()
862 r = pthread_cond_timedwait(cond, mutex, &ts); in uv_cond_timedwait()