mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Put back property locking in threaded_gather_internal - without this,
core updater tasks would crash/segfault - heap corruption
This commit is contained in:
parent
e1a139ec0f
commit
a96d12e8bc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user