MCPcopy Create free account
hub / github.com/audeering/opensmile / smileCondTimedWaitWMtx

Function smileCondTimedWaitWMtx

src/core/smileThread.cpp:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void smileCondTimedWaitWMtx(smileCond &cond, long msec, smileMutex &mtx)
118{
119 while (!cond.signaled) {
120 struct timespec time;
121 clock_gettime(CLOCK_REALTIME, &time);
122 time.tv_sec += msec/1000;
123 time.tv_nsec += ( msec-1000*(msec/1000) )*1000000;
124 pthread_cond_timedwait(&cond.cond, &mtx, &time);
125 }
126 cond.signaled = 0;
127}
128
129void smileCondSignal(smileCond &cond)
130{

Callers 2

myTickMethod · 0.85
myTickMethod · 0.85

Calls 1

clock_gettimeFunction · 0.85

Tested by

no test coverage detected