Skip to content

Commit 00a0512

Browse files
committed
Merge pull request #109151 from clayjohn/WTP-low-priority-threads
Allow processing low priority threads on calling thread in the WTP.
2 parents 3e28932 + 2a8ac1c commit 00a0512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/object/worker_thread_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void WorkerThreadPool::_post_tasks(Task **p_tasks, uint32_t p_count, bool p_high
225225
// in custom builds.
226226

227227
// Avoid calling pump tasks or low priority tasks from the calling thread.
228-
bool process_on_calling_thread = threads.is_empty() && p_high_priority && !p_pump_task;
228+
bool process_on_calling_thread = threads.is_empty() && !p_pump_task;
229229
if (process_on_calling_thread) {
230230
p_lock.temp_unlock();
231231
for (uint32_t i = 0; i < p_count; i++) {

0 commit comments

Comments
 (0)