don't hold property_lock while gathering tasks (#14328)

This commit is contained in:
Jamiras 2022-08-17 20:28:40 -06:00 committed by GitHub
parent c818024bc6
commit e0a065d20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -392,17 +392,14 @@ static void retro_task_threaded_gather(void)
{
retro_task_t *task = NULL;
slock_lock(property_lock);
slock_lock(running_lock);
for (task = tasks_running.front; task; task = task->next)
task_queue_push_progress(task);
slock_unlock(running_lock);
slock_lock(finished_lock);
retro_task_internal_gather();
slock_unlock(finished_lock);
slock_unlock(property_lock);
}
static void retro_task_threaded_wait(retro_task_condition_fn_t cond, void* data)