MCPcopy Create free account
hub / github.com/MariaDB/server / disarm

Method disarm

tpool/tpool_generic.cc:370–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 void disarm() override
371 {
372 std::unique_lock<std::mutex> lk(m_mtx);
373 m_on = false;
374 thr_timer_end(this);
375 lk.unlock();
376
377 if (m_task.m_group)
378 {
379 m_task.m_group->cancel_pending(&m_task);
380 }
381 if (m_pool)
382 {
383 m_pool->cancel_pending(&m_task);
384 }
385 m_task.wait();
386 }
387
388 ~timer_generic() override
389 {

Callers 1

~thread_pool_genericMethod · 0.45

Calls 4

thr_timer_endFunction · 0.85
unlockMethod · 0.45
cancel_pendingMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected