MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / ~ThreadQueue

Method ~ThreadQueue

source/src/tools/threadqueue.h:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 );
35 }
36 ~ThreadQueue()
37 {
38 {
39 std::unique_lock<std::mutex> lock(mutex);
40 stop = true;
41 }
42 condition.notify_all();
43 thread.join();
44 }
45 template<class Fn, class... Args>
46 std::future<std::invoke_result_t<Fn, Args...>> enqueue(Fn&& fn, Args&&... args)
47 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected