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

Method ~ThreadPool

src/engine/ThreadPool.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58ThreadPool::~ThreadPool()
59{
60 WaitForTasks();
61
62 m_terminate.store(true);
63
64 m_forward.notify_all();
65
66 for (std::thread& thread : m_threads)
67 thread.join();
68}
69
70void ThreadPool::AddTask(std::shared_ptr<ThreadPoolTask> const& task)
71{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected