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

Method release

tpool/task.cc:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void waitable_task::release()
53 {
54 std::unique_lock<std::mutex> lk(m_mtx);
55 m_ref_count--;
56 if (!m_ref_count && m_waiter_count)
57 m_cv.notify_all();
58 }
59 void waitable_task::wait(std::unique_lock<std::mutex>& lk)
60 {
61 m_waiter_count++;

Callers 3

executeMethod · 0.45
cancel_pendingMethod · 0.45
cancel_pendingMethod · 0.45

Calls 1

notify_allMethod · 0.80

Tested by

no test coverage detected