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

Method wait

tpool/task.cc:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 m_cv.notify_all();
58 }
59 void waitable_task::wait(std::unique_lock<std::mutex>& lk)
60 {
61 m_waiter_count++;
62 while (m_ref_count)
63 m_cv.wait(lk);
64 m_waiter_count--;
65 }
66 void waitable_task::wait()
67 {
68 std::unique_lock<std::mutex> lk(m_mtx);

Callers 3

thread_funcMethod · 0.45
disarmMethod · 0.45
~thread_pool_genericMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected