MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / cancel_main_thread_dispatch_queue

Method cancel_main_thread_dispatch_queue

utility/task_manager.cpp:430–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void TaskManager::cancel_main_thread_dispatch_queue() {
431 if (!Thread::is_main_thread()) {
432 return;
433 }
434 std::shared_ptr<BaseMainThreadDispatchData> data;
435 while (main_thread_dispatch_queue.try_pop(data)) {
436 data->cancel();
437 }
438}
439
440TaskManager::DownloadTaskID TaskManager::add_download_task(const String &p_download_url, const String &p_save_path, bool silent) {
441 return download_thread.add_download_task(p_download_url, p_save_path, silent);

Callers

nothing calls this directly

Calls 2

try_popMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected