mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 16:00:44 +02:00
With a contended unique lock, we forgot to reset the `Expected` value to zero. This was causing a contended mutex to incorrectly succeed. Noticed this when converting some pthread mutexes over to spinloops to remove strace noise. The reference wfe_mutex library I wrote didn't have this problem since the implementation is slightly different.