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

Method try_dequeue

benchmarks/stdqueue.h:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 inline bool try_dequeue(T& item)
26 {
27 if (q.empty()) {
28 return false;
29 }
30
31 item = std::move(q.front());
32 q.pop();
33 return true;
34 }
35
36 // Dummy token methods (not used)
37 bool enqueue(producer_token_t const&, T const&) { return false; }

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
emptyMethod · 0.45
frontMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected