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

Function threadRunner

src/core/componentManager.cpp:1592–1606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1590}
1591
1592SMILE_THREAD_RETVAL threadRunner(void *_data)
1593{
1594 sThreadData *data = (sThreadData*)_data;
1595 if ((data != NULL)&&(data->obj!=NULL)) {
1596 // ensures log messages created in this thread are sent to the global logger
1597 data->obj->getLogger()->useForCurrentThread();
1598 data->obj->waitForController(data->threadId,0);
1599 data->obj->tickLoopA(data->maxtick, data->threadId, data);
1600 // wait for all threads to be in this state....
1601 data->obj->waitForController(data->threadId,2);
1602 // post EOI processing
1603 data->obj->tickLoopA(data->maxtick, data->threadId, data);
1604 }
1605 SMILE_THREAD_RET;
1606}
1607
1608void cComponentManager::waitForAllThreads(int threadID)
1609{

Callers

nothing calls this directly

Calls 4

useForCurrentThreadMethod · 0.80
waitForControllerMethod · 0.80
tickLoopAMethod · 0.80
getLoggerMethod · 0.45

Tested by

no test coverage detected