mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
don't hold property_lock while gathering tasks (#14328)
This commit is contained in:
parent
c818024bc6
commit
e0a065d20e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user