MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / ~thread_pool

Method ~thread_pool

src/dpp/thread_pool.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65thread_pool::~thread_pool() {
66 {
67 std::unique_lock<std::mutex> lock(queue_mutex);
68 stop = true;
69 }
70
71 cv.notify_all();
72 for (auto &thread: threads) {
73 thread.join();
74 }
75}
76
77void thread_pool::enqueue(thread_pool_task task) {
78 {

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected