mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 14:00:18 +02:00
The creation mutex could have been held if the parent thread was in the middle of creating a thread when forking. This would result in a deadlock once the fork child attempted to create another thread. Forcefully dropping the lock in the fork child works around this deadlock. This comes at the expense of potentially leaving resources guarded by the thread creation mutex in an invalid state. Crashes caused by this are easier to reason about than a delayed deadlock, though.