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

Method Push

GTE/Mathematics/ThreadSafeQueue.h:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 bool Push(Element const& element)
43 {
44 bool pushed;
45 std::lock_guard<std::mutex> lock(mMutex);
46 if (mQueue.size() < mMaxNumElements)
47 {
48 mQueue.push(element);
49 pushed = true;
50 }
51 else
52 {
53 pushed = false;
54 }
55 return pushed;
56 }
57
58 bool Pop(Element& element)
59 {

Callers 1

AssembleFullFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected