mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-02-11 14:48:51 +01:00
![PixelyIon](/assets/img/avatar_default.png)
Calling `WaitSchedule` inside the block where `syncWaiterMutex` is locked causes a race with other threads which lock the core mutex and `syncWaiterMutex` together. This commit moves the `WaitSchedule` outside the block while simply setting a flag to wait later similar to `ConditionVariableWait`'s timeout case. Co-authored-by: Billy Laws <blaws05@gmail.com>