MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / ThreadPool

Method ThreadPool

src/common/Misc/ThreadPool.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#define ENABLE_MULTI_THREADING
31
32ThreadPool::ThreadPool()
33{
34 m_activeThreads = 0;
35
36#ifdef ENABLE_MULTI_THREADING
37 Num_Threads = std::thread::hardware_concurrency();
38 bExiting = false;
39 for (int ii = 0; ii < Num_Threads; ii++)
40 {
41 Pool.push_back(std::thread(&ThreadPool::JobStealerLoop, GetThreadPool()));
42 }
43#endif
44}
45
46ThreadPool::~ThreadPool()
47{

Callers

nothing calls this directly

Calls 2

GetThreadPoolFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected