MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / reserveOneThread

Method reserveOneThread

src/ThreadPool.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool ThreadPoolManager::reserveOneThread()
42{
43 lock();
44 if (available_threads >= 1) {
45 --available_threads;
46 unlock();
47 return true;
48 }
49 unlock();
50 return false;
51}
52
53void ThreadPoolManager::releaseOneThread()
54{

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected