mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 15:56:01 +00:00
* Resolve fake input's real functions before any loader lock is held Each hooked call looked up its real function through a function-local static, and the x86 dlsym hook opened libc the same way. A thread that entered a hook first held the static's guard while dlsym waited for the loader lock, and a thread inside dlopen held the loader lock while its constructor called the same hook and waited for the guard. Steam's update window hung that way under FEX, so x86 Steam stopped at Installing update. The real functions now live in lock-free slots filled by the library's constructor, and the dlsym hook resolves dlvsym and libc there too. * Use an atomic handshake in the loader lock test