summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-01-02 01:07:37 +0100
committerSubv <subv2112@gmail.com>2017-01-05 19:00:05 +0100
commit4251eb26eca3f6df8360f9b6aa6762340817c48a (patch)
tree285427693d6ba229c94148048c9a52a3b2c8b5de /src
parentMerge pull request #2393 from Subv/synch (diff)
downloadyuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.tar
yuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.tar.gz
yuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.tar.bz2
yuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.tar.lz
yuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.tar.xz
yuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.tar.zst
yuzu-4251eb26eca3f6df8360f9b6aa6762340817c48a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/semaphore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp
index 5e6139265..8bda2f75d 100644
--- a/src/core/hle/kernel/semaphore.cpp
+++ b/src/core/hle/kernel/semaphore.cpp
@@ -35,7 +35,8 @@ bool Semaphore::ShouldWait(Thread* thread) const {
}
void Semaphore::Acquire(Thread* thread) {
- ASSERT_MSG(!ShouldWait(thread), "object unavailable!");
+ if (available_count <= 0)
+ return;
--available_count;
}