mirror of
https://github.com/Relintai/thread_pool.git
synced 2024-11-12 10:25:29 +01:00
Decrease the delay a bit in cancel_job_wait.
This commit is contained in:
parent
59ba27f161
commit
0aa6ec8700
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user