MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / poolWorker

Function poolWorker

extlibs/soloud/src/core/soloud_thread.cpp:211–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209#endif
210
211 static void poolWorker(void *aParam)
212 {
213 Pool *myPool = (Pool*)aParam;
214 while (myPool->mRunning)
215 {
216 PoolTask *t = myPool->getWork();
217 if (!t)
218 {
219 sleep(1);
220 }
221 else
222 {
223 t->work();
224 }
225 }
226 }
227
228 Pool::Pool()
229 {

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.85
getWorkMethod · 0.80

Tested by

no test coverage detected