Skip to content

Commit

Permalink
Decrease the delay a bit in cancel_job_wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Oct 31, 2021
1 parent 59ba27f commit 0aa6ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void ThreadPool::cancel_job_wait(Ref<ThreadPoolJob> job) {
job->set_cancelled(true);

while (_threads[i]->job == job) {
OS::get_singleton()->delay_usec(1000);
OS::get_singleton()->delay_usec(100);
}

return;
Expand Down

0 comments on commit 0aa6ec8

Please sign in to comment.