MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Pop

Method Pop

include/CobaltFusion/SynchronizedQueue.h:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 T Pop()
85 {
86 std::unique_lock<std::mutex> lock(m_mtx);
87 m_cond.wait(lock, [&]() { return !Empty(lock); });
88 T t(m_q.front());
89 m_q.pop();
90 lock.unlock();
91 m_cond.notify_one();
92 return t;
93 }
94
95private:
96 bool Empty(std::unique_lock<std::mutex>&) const

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected