MCPcopy Create free account
hub / github.com/cameron314/readerwriterqueue / try_dequeue

Method try_dequeue

readerwriterqueue.h:861–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859 // moves front to result using operator=, then returns true.
860 template<typename U>
861 bool try_dequeue(U& result) AE_NO_TSAN
862 {
863 if (sema->tryWait()) {
864 bool success = inner.try_dequeue(result);
865 assert(success);
866 AE_UNUSED(success);
867 return true;
868 }
869 return false;
870 }
871
872
873 // Attempts to dequeue an element; if the queue is empty,

Callers 2

wait_dequeueMethod · 0.45
wait_dequeue_timedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected