MCPcopy Create free account
hub / github.com/Inori/GPCS4 / push

Method push

GPCS4/SceModules/BlockingQueue.h:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void push(T const& value)
23 {
24 {
25 std::unique_lock<std::mutex> lock(m_mutex);
26 m_cvNotFull.wait(lock, [=] { return m_queue.size() < m_maxElem; });
27 m_queue.push_front(value);
28 }
29
30 this->m_cvNotEmpty.notify_one();
31 }
32
33 T pop()
34 {

Callers 4

addDepedenciesToLoadMethod · 0.45
allocMethod · 0.45
audioOutputMethod · 0.45
audioCloseMethod · 0.45

Calls 2

waitMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected