mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-28 05:38:24 +00:00
Fix deadlock due to missing unlock in task threaded find function
This commit is contained in:
parent
83584c84f8
commit
3c23159148
@ -270,16 +270,20 @@ static bool retro_task_threaded_find(
|
||||
retro_task_finder_t func, void *user_data)
|
||||
{
|
||||
retro_task_t *task = NULL;
|
||||
bool result = false;
|
||||
|
||||
slock_lock(running_lock);
|
||||
for (task = tasks_running.front; task; task = task->next)
|
||||
{
|
||||
if (func(task, user_data))
|
||||
return true;
|
||||
{
|
||||
result = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
slock_unlock(running_lock);
|
||||
|
||||
return false;
|
||||
return result;
|
||||
}
|
||||
|
||||
static void threaded_worker(void *userdata)
|
||||
|
Loading…
Reference in New Issue
Block a user