MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / abandonThreads

Method abandonThreads

src/AsyncWorkQueue.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void AsyncWorkQueue::abandonThreads()
101{
102 std::unique_lock<std::mutex> lock(m_mutex);
103 m_fQuitting = true;
104 m_cvWakeup.notify_all();
105 for (auto &thread : m_vecthreads)
106 {
107 thread.detach();
108 }
109 m_vecthreads.clear();
110}
111
112AsyncWorkQueue::~AsyncWorkQueue()
113{

Callers

nothing calls this directly

Calls 2

detachMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected