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

Method waitForController

src/core/componentManager.cpp:1625–1643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1623}
1624
1625void cComponentManager::waitForController(int threadID, int stage)
1626{
1627 smileMutexLock(waitEndMtx);
1628 if (stage==2) {
1629 waitEndCnt++;
1630 SMILE_DBG(4,"thread %i entered waiting state.. %i threads of %i are now waiting\n",threadID,waitEndCnt,nThreads);
1631 if (waitEndCnt == nThreads) {
1632 smileCondSignal(waitEndCond);
1633 }
1634 smileCondWaitWMtx(waitControllerCond,waitEndMtx);
1635 } else {
1636 if (!controllerPresent) { smileCondWaitWMtx(waitControllerCond,waitEndMtx); }
1637 }
1638 //EOI = _eoi;
1639 //nActive = nThreads; //??
1640 // smileCondBroadcast(waitEndCond);
1641 //endOfLoop=0;
1642 smileMutexUnlock(waitEndMtx);
1643}
1644
1645SMILE_THREAD_RETVAL threadRunnerControl(void *_data)
1646{

Callers 1

threadRunnerFunction · 0.80

Calls 4

smileMutexLockFunction · 0.85
smileCondSignalFunction · 0.85
smileCondWaitWMtxFunction · 0.85
smileMutexUnlockFunction · 0.85

Tested by

no test coverage detected