mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-12 16:00:40 +02:00
This will be useful to fix the mutex locking mess that occurs currently when forks occur. Instead of needing to be /very/ meticulous with many futexes, we can instead have working threads shared_lock this one, then when a fork occurs just only have the forker themselves unique_lock and let the readers drain out. Since it's write-priority it'll happen quite quickly, letting the fork get in and out relatively easily. This is going to take some massaging to get the frontend and FEXCore to a place that this works but we can get this simple change in early.