MCPcopy Create free account
hub / github.com/comaps/comaps / Shutdown

Method Shutdown

libs/base/thread_pool_delayed.cpp:204–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool DelayedThreadPool::Shutdown(Exit e)
205{
206 std::lock_guard lk(m_mu);
207 if (m_shutdown)
208 return false;
209 m_shutdown = true;
210 m_exit = e;
211 m_cv.notify_all();
212 return true;
213}
214
215void DelayedThreadPool::ShutdownAndJoin()
216{

Callers 1

UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.36