mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-12 13:00:41 +02:00
If an application is forking heavily with threaded file accesses happening then the mutex can end up in an unknown state. On fork make sure to lock the mutex then immediately unlock after fork occurs. This final step resolves hanging that pressure-vessel hits on startup. Since it is doing a ton of file opening and forking during initialization.