Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 4 of 4) sorted by path

/unit/src/
H A Dnxt_semaphore.c176 if (nxt_thread_cond_create(&sem->cond) == NXT_OK) { in nxt_sem_init()
191 nxt_thread_cond_destroy(&sem->cond); in nxt_sem_destroy()
205 ret = nxt_thread_cond_signal(&sem->cond); in nxt_sem_post()
228 err = nxt_thread_cond_wait(&sem->cond, &sem->mutex, timeout); in nxt_sem_wait()
H A Dnxt_semaphore.h20 nxt_thread_cond_t cond; member
H A Dnxt_thread.h112 NXT_EXPORT nxt_int_t nxt_thread_cond_create(nxt_thread_cond_t *cond);
113 NXT_EXPORT void nxt_thread_cond_destroy(nxt_thread_cond_t *cond);
114 NXT_EXPORT nxt_int_t nxt_thread_cond_signal(nxt_thread_cond_t *cond);
115 NXT_EXPORT nxt_err_t nxt_thread_cond_wait(nxt_thread_cond_t *cond,
H A Dnxt_thread_cond.c11 nxt_thread_cond_create(nxt_thread_cond_t *cond) in nxt_thread_cond_create() argument
15 err = pthread_cond_init(cond, NULL); in nxt_thread_cond_create()
17 nxt_thread_log_debug("pthread_cond_init(%p)", cond); in nxt_thread_cond_create()
27 nxt_thread_cond_destroy(nxt_thread_cond_t *cond) in nxt_thread_cond_destroy() argument
31 err = pthread_cond_destroy(cond); in nxt_thread_cond_destroy()
41 nxt_thread_cond_signal(nxt_thread_cond_t *cond) in nxt_thread_cond_signal() argument
45 err = pthread_cond_signal(cond); in nxt_thread_cond_signal()
72 err = pthread_cond_wait(cond, mtx); in nxt_thread_cond_wait()
85 cond, timeout); in nxt_thread_cond_wait()
93 err = pthread_cond_timedwait(cond, mtx, &ts); in nxt_thread_cond_wait()
[all …]