Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
247
void LegacyThreadPool::stopAllTasks() {
248
Task task;
249
while (_taskQueue.pop(task)) {
250
delete task.callback; // empty the queue
251
}
252
}
253
254
void LegacyThreadPool::stopTasksByType(TaskType type) {
255
Task task;
Callers
nothing calls this directly
Calls
1
pop
Method · 0.45
Tested by
no test coverage detected