aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-08-12 16:35:27 -0500
committerSubv <subv2112@gmail.com>2018-08-12 16:35:27 -0500
commit8f493f43e7fbabf499da75790496ed6e2103a234 (patch)
tree1adb522e7319f520a382a34cd635b08a0f04a989 /src/core/hle/kernel/kernel.cpp
parentd21901f7f20e3851b63b397b057b3f6893c14a34 (diff)
Kernel/Mutex: Don't duplicate threads in the mutex waiter list.
Exit from AddMutexWaiter early if the thread is already waiting for a mutex owned by the owner thread. This accounts for the possibility of a thread that is waiting on a condition variable being awakened twice in a row. Also added more validation asserts. This should fix one of the random crashes in Breath Of The Wild.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
0 files changed, 0 insertions, 0 deletions