Lines Matching refs:cond
71 void *cond; member
79 EVTHREAD_COND_BROADCAST(cw->cond); in wake_all_timeout()
89 EVTHREAD_COND_SIGNAL(cw->cond); in wake_one_timeout()
107 EVTHREAD_ALLOC_COND(cw.cond); in basic_thread()
109 assert(cw.cond); in basic_thread()
123 assert(EVTHREAD_COND_WAIT(cw.cond, cw.lock) == 0); in basic_thread()
138 EVTHREAD_FREE_COND(cw.cond); in basic_thread()
261 struct cond_wait *cond; member
273 EVLOCK_LOCK(rec->cond->lock, 0); in wait_for_condition()
275 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock, in wait_for_condition()
278 r = EVTHREAD_COND_WAIT(rec->cond->cond, rec->cond->lock); in wait_for_condition()
280 EVLOCK_UNLOCK(rec->cond->lock, 0); in wait_for_condition()
295 struct cond_wait cond; in thread_conditions_simple() local
309 EVTHREAD_ALLOC_LOCK(cond.lock, EVTHREAD_LOCKTYPE_RECURSIVE); in thread_conditions_simple()
310 EVTHREAD_ALLOC_COND(cond.cond); in thread_conditions_simple()
311 tt_assert(cond.lock); in thread_conditions_simple()
312 tt_assert(cond.cond); in thread_conditions_simple()
315 alerted[i].cond = &cond; in thread_conditions_simple()
322 evtimer_assign(&wake_one, base, wake_one_timeout, &cond); in thread_conditions_simple()
323 evtimer_assign(&wake_all, base, wake_all_timeout, &cond); in thread_conditions_simple()
385 EVTHREAD_FREE_LOCK(cond.lock, EVTHREAD_LOCKTYPE_RECURSIVE); in thread_conditions_simple()
386 EVTHREAD_FREE_COND(cond.cond); in thread_conditions_simple()