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

Method shutdown

src/AsyncWorkQueue.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void AsyncWorkQueue::shutdown()
89{
90 std::unique_lock<std::mutex> lock(m_mutex);
91 serverAssert(!GlobalLocksAcquired());
92 m_fQuitting = true;
93 m_cvWakeup.notify_all();
94 lock.unlock();
95
96 for (auto &thread : m_vecthreads)
97 thread.join();
98}
99
100void AsyncWorkQueue::abandonThreads()
101{

Callers 3

prepareForShutdownFunction · 0.45
sigShutdownHandlerFunction · 0.45
mainFunction · 0.45

Calls 2

GlobalLocksAcquiredFunction · 0.85
unlockMethod · 0.45

Tested by

no test coverage detected