mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 08:00:42 +02:00
This is a bit of a peculiar one, we want to ensure a single threaded application is running on the emulator's primary thread. This mitigates the problem that an application can do a getpid versus gettid comparison and notice a problem. Some games rely on getpid being the actual process ID and will spin forever if it isn't the case. This is also necessary for wine bringup since thread creation needs a bit more finesse there. Fixes #186