mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #109151 from clayjohn/WTP-low-priority-threads
Allow processing low priority threads on calling thread in the WTP.
This commit is contained in:
commit
00a0512854
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ void WorkerThreadPool::_post_tasks(Task **p_tasks, uint32_t p_count, bool p_high
|
|||
// in custom builds.
|
||||
|
||||
// Avoid calling pump tasks or low priority tasks from the calling thread.
|
||||
bool process_on_calling_thread = threads.is_empty() && p_high_priority && !p_pump_task;
|
||||
bool process_on_calling_thread = threads.is_empty() && !p_pump_task;
|
||||
if (process_on_calling_thread) {
|
||||
p_lock.temp_unlock();
|
||||
for (uint32_t i = 0; i < p_count; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue