Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
41
bool 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
53
void ThreadPoolManager::releaseOneThread()
54
{
Callers
1
run
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected