Skip to content

Commit 69c83f8

Browse files
committed
Resync
1 parent 81d8131 commit 69c83f8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

queues/task_queue.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,13 @@ static void retro_task_threaded_wait(retro_task_condition_fn_t cond, void* data)
423423
slock_lock(running_lock);
424424
wait = (tasks_running.front && !tasks_running.front->when);
425425
slock_unlock(running_lock);
426+
427+
if (!wait)
428+
{
429+
slock_lock(finished_lock);
430+
wait = (tasks_finished.front && !tasks_finished.front->when);
431+
slock_unlock(finished_lock);
432+
}
426433
} while (wait && (!cond || cond(data)));
427434
}
428435

0 commit comments

Comments
 (0)