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

Method removeTaskId

valdi_core/src/valdi_core/cpp/Threading/GCDDispatchQueue.cpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool GCDDispatchQueue::removeTaskId(task_id_t id) {
144 std::lock_guard<Mutex> guard(_mutex);
145 const auto& it = _activeTasks.find(id);
146 if (it == _activeTasks.end()) {
147 return false;
148 }
149 _activeTasks.erase(it);
150 return true;
151}
152
153task_id_t GCDDispatchQueue::asyncAfter(DispatchFunction function, std::chrono::steady_clock::duration delay) {
154 incrementPendingTaskCount();

Callers

nothing calls this directly

Calls 3

endMethod · 0.65
findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected