Skip to content
Snippets Groups Projects
  • Subv's avatar
    Kernel/Mutex: Don't duplicate threads in the mutex waiter list. · 5224cc49
    Subv authored
    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.
    5224cc49