| 352 | } |
| 353 | |
| 354 | void run_internal(void *p_data) { |
| 355 | if (canceled || done) { |
| 356 | return; |
| 357 | } |
| 358 | TaskManager::get_singleton()->set_thread_task_id(task_manager_id); |
| 359 | cb_struct->run(p_data); |
| 360 | TaskManager::get_singleton()->set_thread_task_id(-1); |
| 361 | done = true; |
| 362 | } |
| 363 | virtual void run_on_current_thread() override { |
| 364 | run_internal(userdata); |
| 365 | } |
nothing calls this directly
no test coverage detected