MCPcopy Create free account
hub / github.com/9miao/CrossApp / PopElement

Method PopElement

CrossApp/basics/CASyncQueue.h:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 m_SyncQueue.push(v);
57 }
58 bool PopElement(T& v)
59 {
60 CAAutoLock lock(m_Cs);
61 if (!m_SyncQueue.empty())
62 {
63 v = m_SyncQueue.front();
64 m_SyncQueue.pop();
65 return true;
66 }
67 return false;
68 }
69 std::vector<T> GetQueueElements()
70 {
71 CAAutoLock lock(m_Cs);

Callers 4

_ThreadProcMethod · 0.80
setVPPositionMethod · 0.80
presentFrameMethod · 0.80
audioCallbackMethod · 0.80

Calls 2

emptyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected