Searched refs:cond (Results 1 – 10 of 10) sorted by relevance
/libuv/src/unix/ |
H A D | thread.c | 530 uv_cond_t cond; member 568 uv_cond_destroy(&sem->cond); in uv__custom_sem_destroy() 711 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument 717 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument 740 pthread_cond_destroy(cond); in uv_cond_init() 778 if (pthread_cond_destroy(cond)) in uv_cond_destroy() 782 void uv_cond_signal(uv_cond_t* cond) { in uv_cond_signal() argument 783 if (pthread_cond_signal(cond)) in uv_cond_signal() 788 if (pthread_cond_broadcast(cond)) in uv_cond_broadcast() 798 r = pthread_cond_wait(cond, mutex); in uv_cond_wait() [all …]
|
/libuv/src/ |
H A D | thread-common.c | 66 rc = uv_cond_init((uv_cond_t*) &b->cond); in uv_barrier_init() 102 uv_cond_wait((uv_cond_t*) &b->cond, &b->mutex); in uv_barrier_wait() 107 uv_cond_broadcast((uv_cond_t*) &b->cond); in uv_barrier_wait() 110 uv_cond_wait((uv_cond_t*) &b->cond, &b->mutex); in uv_barrier_wait() 116 uv_cond_broadcast((uv_cond_t*) &b->cond); in uv_barrier_wait() 136 uv_cond_wait((uv_cond_t*) &b->cond, &b->mutex); in uv_barrier_destroy() 143 uv_cond_destroy((uv_cond_t*) &b->cond); in uv_barrier_destroy()
|
H A D | threadpool.c | 33 static uv_cond_t cond; variable 76 uv_cond_wait(&cond, &mutex); in worker() 82 uv_cond_signal(&cond); in worker() 115 uv_cond_signal(&cond); in worker() 158 uv_cond_signal(&cond); in post() 186 uv_cond_destroy(&cond); in uv__threadpool_cleanup() 217 if (uv_cond_init(&cond)) in init_threads()
|
/libuv/src/win/ |
H A D | thread.c | 403 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument 404 InitializeConditionVariable(&cond->cond_var); in uv_cond_init() 409 void uv_cond_destroy(uv_cond_t* cond) { in uv_cond_destroy() argument 411 (void) &cond; in uv_cond_destroy() 415 void uv_cond_signal(uv_cond_t* cond) { in uv_cond_signal() argument 416 WakeConditionVariable(&cond->cond_var); in uv_cond_signal() 420 void uv_cond_broadcast(uv_cond_t* cond) { in uv_cond_broadcast() argument 421 WakeAllConditionVariable(&cond->cond_var); in uv_cond_broadcast() 425 void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex) { in uv_cond_wait() argument 426 if (!SleepConditionVariableCS(&cond->cond_var, mutex, INFINITE)) in uv_cond_wait() [all …]
|
/libuv/test/ |
H A D | test-condvar.c | 37 uv_cond_t cond; member 60 ASSERT_OK(uv_cond_init(&wc->cond)); in worker_config_init() 66 uv_cond_destroy(&wc->cond); in worker_config_destroy() 94 uv_cond_broadcast(&c->cond); in condvar_signal() 96 uv_cond_signal(&c->cond); in condvar_signal() 114 uv_cond_wait(&c->cond, &c->mutex); in condvar_wait() 178 r = uv_cond_timedwait(&c->cond, &c->mutex, (uint64_t)(1 * 1e9)); /* 1 s */ in condvar_timedwait() 241 ASSERT_EQ(UV_ETIMEDOUT, uv_cond_timedwait(&wc.cond, &wc.mutex, timeout)); in TEST_IMPL()
|
/libuv/docs/src/ |
H A D | threading.rst | 228 .. c:function:: int uv_cond_init(uv_cond_t* cond) 229 .. c:function:: void uv_cond_destroy(uv_cond_t* cond) 230 .. c:function:: void uv_cond_signal(uv_cond_t* cond) 231 .. c:function:: void uv_cond_broadcast(uv_cond_t* cond) 232 .. c:function:: void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex) 233 .. c:function:: int uv_cond_timedwait(uv_cond_t* cond, uv_mutex_t* mutex, uint64_t timeout)
|
/libuv/include/ |
H A D | uv.h | 1847 UV_EXTERN int uv_cond_init(uv_cond_t* cond); 1848 UV_EXTERN void uv_cond_destroy(uv_cond_t* cond); 1849 UV_EXTERN void uv_cond_signal(uv_cond_t* cond); 1850 UV_EXTERN void uv_cond_broadcast(uv_cond_t* cond); 1856 UV_EXTERN void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex); 1857 UV_EXTERN int uv_cond_timedwait(uv_cond_t* cond,
|
/libuv/include/uv/ |
H A D | unix.h | 147 uv_cond_t cond; member
|
H A D | win.h | 282 CONDITION_VARIABLE cond; member
|
/libuv/ |
H A D | ChangeLog | 689 * test: cond-skip fork_threadpool_queue_work_simple (Ben Noordhuis) 691 * test: cond-skip signal_multiple_loops (Ben Noordhuis) 693 * test: cond-skip tcp_writealot (Ben Noordhuis)
|
Completed in 32 milliseconds