MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / pop

Method pop

modules/core/task/src/task2.cpp:145–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143#ifdef USE_ATOMIC_QUEUE
144 atomic_queue::AtomicQueue2<Task, 1024> queue;
145 bool pop(Task& task) { return queue.try_pop(task); }
146 bool steal(Task& task) { return queue.try_pop(task); }
147 void push(Task&& task) { queue.push(std::move(task)); }
148#else

Callers 5

pop_stackMethod · 0.45
pop_keyMethod · 0.45
DecimateFunction · 0.45
runUntilIdleMethod · 0.45
tlssPopFunction · 0.45

Calls 2

try_popMethod · 0.80
try_dequeueMethod · 0.45

Tested by 1

tlssPopFunction · 0.36