Put back property locking in threaded_gather_internal - without this,

core updater tasks would crash/segfault - heap corruption
This commit is contained in:
LibretroAdmin 2022-08-22 03:41:17 +02:00
parent e1a139ec0f
commit a96d12e8bc

View File

@ -392,6 +392,7 @@ 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);
@ -400,6 +401,7 @@ static void retro_task_threaded_gather(void)
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)