Home
last modified time | relevance | path

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

/libevent-2.1.12/test/
H A Dregress_thread.c270 struct alerted_record *rec = arg; in wait_for_condition() local
273 EVLOCK_LOCK(rec->cond->lock, 0); in wait_for_condition()
274 if (rec->delay.tv_sec || rec->delay.tv_usec) { in wait_for_condition()
275 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock, in wait_for_condition()
276 &rec->delay); 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()
282 evutil_gettimeofday(&rec->alerted_at, NULL); in wait_for_condition()
284 rec->timed_out = 1; in wait_for_condition()