From 80154b0a542f9b1000083d50cbfbd46dccae4fec Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 7 Apr 2022 12:17:13 -0700 Subject: [PATCH] os: broadcast, not signal, on release more than 1 sema --- libraries/libstratosphere/source/os/os_semaphore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/os/os_semaphore.cpp b/libraries/libstratosphere/source/os/os_semaphore.cpp index 2bf76cbeb..2031d8241 100644 --- a/libraries/libstratosphere/source/os/os_semaphore.cpp +++ b/libraries/libstratosphere/source/os/os_semaphore.cpp @@ -131,7 +131,7 @@ namespace ams::os { sema->count += count; - GetReference(sema->cv_not_zero).Signal(); + GetReference(sema->cv_not_zero).Broadcast(); GetReference(sema->waitlist).SignalAllThreads(); } }