MCPcopy Create free account
hub / github.com/Snapchat/Valdi / enqueue

Method enqueue

valdi_core/src/valdi_core/cpp/Threading/TaskQueue.cpp:52–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51void TaskQueue::sync(const DispatchFunction& function) {
52 barrier(function);
53}
54
55void TaskQueue::async(DispatchFunction function) {
56 enqueue(std::move(function));
57}

Callers 2

asyncMethod · 0.45
asyncAfterMethod · 0.45

Calls 3

notifyAllMethod · 0.80
nowFunction · 0.50
onQueueNonEmptyMethod · 0.45

Tested by

no test coverage detected