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

Method enqueue

quantum/impl/quantum_io_queue_impl.h:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189inline
190void IoQueue::enqueue(ITask::Ptr task)
191{
192 if (!task)
193 {
194 return; //nothing to do
195 }
196 //========================= LOCKED SCOPE =========================
197 SpinLock::Guard lock(_spinlock);
198 doEnqueue(task);
199}
200
201inline
202bool IoQueue::tryEnqueue(ITask::Ptr task)

Callers 3

postMethod · 0.45
postAsyncIoMethod · 0.45
TEST_PFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_PFunction · 0.36