MCPcopy Create free account
hub / github.com/YACReader/yacreader / ~WorkerThread

Method ~WorkerThread

common/worker_thread.h:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46template<typename Result>
47WorkerThread<Result>::~WorkerThread()
48{
49 {
50 std::lock_guard<std::mutex> lock(mutex);
51 abort = true;
52 }
53 condition.notify_one();
54 if (thread.joinable()) {
55 thread.join();
56 }
57}
58
59template<typename Result>
60void WorkerThread<Result>::performTask(Task newTask)

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected