MCPcopy Create free account
hub / github.com/cocos/cocos-engine / stopAllTasks

Method stopAllTasks

native/cocos/base/ThreadPool.cpp:247–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void LegacyThreadPool::stopAllTasks() {
248 Task task;
249 while (_taskQueue.pop(task)) {
250 delete task.callback; // empty the queue
251 }
252}
253
254void LegacyThreadPool::stopTasksByType(TaskType type) {
255 Task task;

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected