MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / pop

Method pop

3rdparty/asyncplusplus/src/fifo_queue.h:63–73  ·  view source on GitHub ↗

Pop a task from the front of the queue

Source from the content-addressed store, hash-verified

61
62 // Pop a task from the front of the queue
63 task_run_handle pop()
64 {
65 // See if an item is available
66 if (head == tail)
67 return task_run_handle();
68 else {
69 void* x = items[head];
70 head = (head + 1) & (items.size() - 1);
71 return task_run_handle::from_void_ptr(x);
72 }
73 }
74};
75
76} // namespace detail

Callers 5

try_run_one_taskMethod · 0.45
thread_task_loopFunction · 0.45
restoreMethod · 0.45
axisRectsMethod · 0.45
selectedLegendsMethod · 0.45

Calls 2

task_run_handleClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected