We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d9325 commit c9f4436Copy full SHA for c9f4436
core/object/worker_thread_pool.cpp
@@ -83,6 +83,10 @@ void WorkerThreadPool::_process_task(Task *p_task) {
83
}
84
#endif
85
86
+#ifdef THREADS_ENABLED
87
+ bool low_priority = p_task->low_priority;
88
+#endif
89
+
90
if (p_task->group) {
91
// Handling a group
92
bool do_post = false;
@@ -159,7 +163,7 @@ void WorkerThreadPool::_process_task(Task *p_task) {
159
163
#ifdef THREADS_ENABLED
160
164
{
161
165
curr_thread.current_task = prev_task;
162
- if (p_task->low_priority) {
166
+ if (low_priority) {
167
low_priority_threads_used--;
168
169
if (_try_promote_low_priority_task()) {
0 commit comments