diff options
author | Subv <subv2112@gmail.com> | 2017-01-02 01:07:37 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-01-05 19:00:05 +0100 |
commit | 4251eb26eca3f6df8360f9b6aa6762340817c48a (patch) | |
tree | 285427693d6ba229c94148048c9a52a3b2c8b5de /src/core/hle/kernel/semaphore.cpp | |
parent | Merge pull request #2393 from Subv/synch (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/core/hle/kernel/semaphore.cpp | 3 |
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; } |