MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / ~Pool

Method ~Pool

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

Source from the content-addressed store, hash-verified

236 }
237
238 Pool::~Pool()
239 {
240 mRunning = 0;
241 int i;
242 for (i = 0; i < mThreadCount; i++)
243 {
244 wait(mThread[i]);
245 release(mThread[i]);
246 }
247 delete[] mThread;
248 if (mWorkMutex)
249 destroyMutex(mWorkMutex);
250 }
251
252 void Pool::init(int aThreadCount)
253 {

Callers

nothing calls this directly

Calls 3

waitFunction · 0.85
releaseFunction · 0.85
destroyMutexFunction · 0.85

Tested by

no test coverage detected