diff options
| author | 2018-05-20 14:41:58 -0500 | |
|---|---|---|
| committer | 2018-05-20 14:41:58 -0500 | |
| commit | fd500d3da6f31bfaf749a5262b804a707860f442 (patch) | |
| tree | fedd63f0fe0734a42e03451b7266a1829e09f6d3 /src/core/hle/kernel/mutex.cpp | |
| parent | Merge pull request #436 from bunnei/multi-core (diff) | |
| download | yuzu-fd500d3da6f31bfaf749a5262b804a707860f442.tar.gz yuzu-fd500d3da6f31bfaf749a5262b804a707860f442.tar.xz yuzu-fd500d3da6f31bfaf749a5262b804a707860f442.zip | |
Mutex: Do not assert when the mutex waiting threads list isn't empty on mutex release.
A thread may own multiple mutexes at the same time, and only release one of them while other threads are waiting for the other mutexes.
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 63733ad79..bc144f3de 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -104,7 +104,6 @@ ResultCode Mutex::Release(VAddr address) { | |||
| 104 | 104 | ||
| 105 | // There are no more threads waiting for the mutex, release it completely. | 105 | // There are no more threads waiting for the mutex, release it completely. |
| 106 | if (thread == nullptr) { | 106 | if (thread == nullptr) { |
| 107 | ASSERT(GetCurrentThread()->wait_mutex_threads.empty()); | ||
| 108 | Memory::Write32(address, 0); | 107 | Memory::Write32(address, 0); |
| 109 | return RESULT_SUCCESS; | 108 | return RESULT_SUCCESS; |
| 110 | } | 109 | } |