MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / ThreadPool

Method ThreadPool

src/engine/ThreadPool.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46ThreadPool::ThreadPool(uint32_t numThreads)
47{
48 if (numThreads == 0)
49 numThreads = std::thread::hardware_concurrency();
50
51 m_threads.resize(numThreads);
52 for (uint32_t i = 0; i < numThreads; ++i)
53 {
54 m_threads[i] = std::thread(StaticThreadProc, this);
55 }
56}
57
58ThreadPool::~ThreadPool()
59{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected