Skip to content

Commit

Permalink
Only check low_priority for threads enabled
Browse files Browse the repository at this point in the history
Co-authored-by: A Thousand Ships <[email protected]>
  • Loading branch information
alvinhochun and AThousandShips authored Jul 27, 2024
1 parent 795198a commit b7b818b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/object/worker_thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ void WorkerThreadPool::_process_task(Task *p_task) {
}
#endif

#ifdef THREADS_ENABLED
bool low_priority = p_task->low_priority;
#endif

if (p_task->group) {
// Handling a group
Expand Down

0 comments on commit b7b818b

Please sign in to comment.