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

Method Push

include/CobaltFusion/SynchronizedQueue.h:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void Push(T t)
76 {
77 std::unique_lock<std::mutex> lock(m_mtx);
78 m_cond.wait(lock, [&]() { return !Full(lock); });
79 m_q.push(std::move(t));
80 lock.unlock();
81 m_cond.notify_one();
82 }
83
84 T Pop()
85 {

Callers 5

AddMethod · 0.80
~ProcessMonitorMethod · 0.80
AddMethod · 0.80
CallMethod · 0.80
CallAsyncMethod · 0.80

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected