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

Method waitForAllThreads

src/core/componentManager.cpp:1608–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1606}
1607
1608void cComponentManager::waitForAllThreads(int threadID)
1609{
1610 smileMutexLock(waitEndMtx);
1611 SMILE_DBG(4,"thread controller entered waiting state.. %i threads of %i are now waiting\n",threadID,waitEndCnt,nThreads);
1612
1613 if (waitEndCnt < nThreads) {
1614 smileCondWaitWMtx(waitEndCond,waitEndMtx);
1615 }
1616 EOI = 1;
1617 nActive = nThreads; //??
1618 //smileCondBroadcast(waitEndCond);
1619 endOfLoop=0;
1620 waitEndCnt = 0;
1621 controllerPresent = 0;
1622 smileMutexUnlock(waitEndMtx);
1623}
1624
1625void cComponentManager::waitForController(int threadID, int stage)
1626{

Callers 1

threadRunnerControlFunction · 0.80

Calls 3

smileMutexLockFunction · 0.85
smileCondWaitWMtxFunction · 0.85
smileMutexUnlockFunction · 0.85

Tested by

no test coverage detected