Properly remove a thread from its wait_objects' waitlist when it is awoken by a timeout.
This commit is contained in:
parent
17b29d8865
commit
406907d570
3 changed files with 11 additions and 2 deletions
|
@ -321,7 +321,7 @@ static ResultCode WaitSynchronizationN(s32* out, Handle* handles, s32 handle_cou
|
|||
});
|
||||
if (all_available) {
|
||||
// We can acquire all objects right now, do so.
|
||||
for (auto object : objects)
|
||||
for (auto& object : objects)
|
||||
object->Acquire();
|
||||
// Note: In this case, the `out` parameter is not set, and retains whatever value it had before.
|
||||
return RESULT_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue