MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_cond_timedwait

Function hb_cond_timedwait

libhb/ports.c:1201–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199}
1200
1201void hb_cond_timedwait( hb_cond_t * c, hb_lock_t * lock, int msec )
1202{
1203 struct timespec ts;
1204 hb_clock_gettime(&ts);
1205 ts.tv_nsec += (msec % 1000) * 1000000;
1206 ts.tv_sec += msec / 1000 + (ts.tv_nsec / 1000000000);
1207 ts.tv_nsec %= 1000000000;
1208 pthread_cond_timedwait( &c->cond, &lock->mutex, &ts );
1209}
1210
1211void hb_cond_signal( hb_cond_t * c )
1212{

Callers 4

hb_fifo_get_waitFunction · 0.85
hb_fifo_see_waitFunction · 0.85
hb_fifo_full_waitFunction · 0.85
hb_fifo_push_waitFunction · 0.85

Calls 1

hb_clock_gettimeFunction · 0.85

Tested by

no test coverage detected