Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 10 of 10) sorted by relevance

/libuv/src/unix/
H A Dthread.c551 uv_cond_t cond; member
589 uv_cond_destroy(&sem->cond); in uv__custom_sem_destroy()
732 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument
738 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument
761 pthread_cond_destroy(cond); in uv_cond_init()
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()
809 if (pthread_cond_broadcast(cond)) in uv_cond_broadcast()
819 r = pthread_cond_wait(cond, mutex); in uv_cond_wait()
[all …]
/libuv/src/
H A Dthread-common.c66 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 Dthreadpool.c33 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/test/
H A Dtest-condvar.c37 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/src/win/
H A Dthread.c477 int uv_cond_init(uv_cond_t* cond) { in uv_cond_init() argument
478 InitializeConditionVariable(&cond->cond_var); in uv_cond_init()
483 void uv_cond_destroy(uv_cond_t* cond) { in uv_cond_destroy() argument
485 (void) &cond; in uv_cond_destroy()
489 void uv_cond_signal(uv_cond_t* cond) { in uv_cond_signal() argument
490 WakeConditionVariable(&cond->cond_var); in uv_cond_signal()
494 void uv_cond_broadcast(uv_cond_t* cond) { in uv_cond_broadcast() argument
495 WakeAllConditionVariable(&cond->cond_var); in uv_cond_broadcast()
499 void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex) { in uv_cond_wait() argument
500 if (!SleepConditionVariableCS(&cond->cond_var, mutex, INFINITE)) in uv_cond_wait()
[all …]
/libuv/docs/src/
H A Dthreading.rst253 .. c:function:: int uv_cond_init(uv_cond_t* cond)
254 .. c:function:: void uv_cond_destroy(uv_cond_t* cond)
255 .. c:function:: void uv_cond_signal(uv_cond_t* cond)
256 .. c:function:: void uv_cond_broadcast(uv_cond_t* cond)
257 .. c:function:: void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex)
258 .. c:function:: int uv_cond_timedwait(uv_cond_t* cond, uv_mutex_t* mutex, uint64_t timeout)
/libuv/include/
H A Duv.h1853 UV_EXTERN int uv_cond_init(uv_cond_t* cond);
1854 UV_EXTERN void uv_cond_destroy(uv_cond_t* cond);
1855 UV_EXTERN void uv_cond_signal(uv_cond_t* cond);
1856 UV_EXTERN void uv_cond_broadcast(uv_cond_t* cond);
1862 UV_EXTERN void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex);
1863 UV_EXTERN int uv_cond_timedwait(uv_cond_t* cond,
/libuv/include/uv/
H A Dunix.h147 uv_cond_t cond; member
H A Dwin.h274 CONDITION_VARIABLE cond; member
/libuv/
H A DChangeLog689 * 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 66 milliseconds