mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-24 21:00:47 +02:00
It's common for Linux applications that use close_range to pass in ~0 as the last FD. This was causing FEX to spin from [2, ~0U] in this loop. This would take /forever/ to run. Change over to an ordered map and use the map's range searching and ranged erase to more quickly remove these elements. Fixes a hang that occurs with first time Steam setup in steam-linux-runtime heavy application `steam-runtime-identify-library-abi`.