diff options
author | Subv <subv2112@gmail.com> | 2018-08-12 16:35:27 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-08-12 16:35:27 -0500 |
commit | 5224cc49c4daa8d20999bad15a9b16d8d16b9d10 (patch) | |
tree | 1adb522e7319f520a382a34cd635b08a0f04a989 /src/common/memory_util.cpp | |
parent | 5926fbd3d7b51e9adeb38b6267191fca4442334e (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/common/memory_util.cpp')
0 files changed, 0 insertions, 0 deletions