MCPcopy Create free account
hub / github.com/bloomberg/quantum / doDequeue

Method doDequeue

quantum/impl/quantum_io_queue_impl.h:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263inline
264ITask::Ptr IoQueue::doDequeue(std::atomic_bool& hint)
265{
266 hint = _queue.empty();
267 if (!hint)
268 {
269 ITask::Ptr task = _queue.front();
270 _queue.pop_front();
271 _stats.decNumElements();
272 return task;
273 }
274 return nullptr;
275}
276
277inline
278ITask::Ptr IoQueue::tryDequeueFromShared()

Callers

nothing calls this directly

Calls 2

decNumElementsMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected