mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 16:00:45 +02:00
Instead of just a basic mutex, also mask the signals. This fixes the problem where we can end up receiving a signal in the middle of memory allocation. Thus leaving the locked mutex in a broken state. This more closely matches the Linux kernel behaviour. Since if you're in the middle of a memory allocating syscall, you won't get signaled.