Renderer: Reduce scope of mutex locks to prevent common deadlocks

Fixes #102877
This commit is contained in:
Stuart Carnie 2025-04-08 15:17:04 +10:00
parent af2c713971
commit 09282c316a
6 changed files with 114 additions and 52 deletions

View file

@ -182,6 +182,7 @@ void WorkerThreadPool::_process_task(Task *p_task) {
void WorkerThreadPool::_thread_function(void *p_user) {
ThreadData *thread_data = (ThreadData *)p_user;
Thread::set_name(vformat("WorkerThread %d", thread_data->index));
while (true) {
Task *task_to_process = nullptr;