mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-27 19:01:12 +01:00
Theoretically, another thread could run after the reprotection but before the invalidation, write some code and jump to it but end up jumping to old code as the invalidation is yet to occur. Fix this by locking the invalidation mutex, invalidating and only then reprotecting.