summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar Subv2016-12-10 13:29:31 -0500
committerGravatar Subv2016-12-10 13:29:31 -0500
commit406907d57055965780e04769482556995de8c50a (patch)
treef9e355eccba394047b32160e8f7574a74f46772b /src/core/hle/svc.cpp
parentWaitSynch: Removed unused variables and reduced SharedPtr copies. (diff)
downloadyuzu-406907d57055965780e04769482556995de8c50a.tar.gz
yuzu-406907d57055965780e04769482556995de8c50a.tar.xz
yuzu-406907d57055965780e04769482556995de8c50a.zip
Properly remove a thread from its wait_objects' waitlist when it is awoken by a timeout.
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 14da09883..c81c14443 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -321,7 +321,7 @@ static ResultCode WaitSynchronizationN(s32* out, Handle* handles, s32 handle_cou
321 }); 321 });
322 if (all_available) { 322 if (all_available) {
323 // We can acquire all objects right now, do so. 323 // We can acquire all objects right now, do so.
324 for (auto object : objects) 324 for (auto& object : objects)
325 object->Acquire(); 325 object->Acquire();
326 // Note: In this case, the `out` parameter is not set, and retains whatever value it had before. 326 // Note: In this case, the `out` parameter is not set, and retains whatever value it had before.
327 return RESULT_SUCCESS; 327 return RESULT_SUCCESS;