MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Pop

Method Pop

GTE/Mathematics/ThreadSafeQueue.h:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 bool Pop(Element& element)
59 {
60 bool popped;
61 std::lock_guard<std::mutex> lock(mMutex);
62 if (mQueue.size() > 0)
63 {
64 element = mQueue.front();
65 mQueue.pop();
66 popped = true;
67 }
68 else
69 {
70 popped = false;
71 }
72 return popped;
73 }
74
75 protected:
76 size_t mMaxNumElements;

Callers 1

GetFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected