Files
FEX-Emu--FEX/FEXCore/Source/Utils
Ryan Houdek d2d0ca2de9 FEXCore: Implement a write-priority mutex
Now that our Lookup cache mutex is no longer recursive, we can safely
use a shared_mutex instead. The problem with a c++ std::shared_mutex is
that it doesn't guarantee any form of priority, so tens of thousands of
read-locks per second can cause a writer to never acquire the lock, or
take too much time.

The bad news is that C++ doesn't provide us a primitive with
write-priority, so we need to construct our own that is still compatible
with Linux futex. So this is what we do.

- Windows: Uses an SRWLock instead.
  - Only way for WINE to provide us a futex fallback that priorities
    write-priority without stampeding.
2025-11-04 15:48:52 -08:00
..
2024-04-12 16:26:02 +02:00
2024-04-12 16:26:02 +02:00
2024-04-12 16:26:02 +02:00
2024-04-12 16:26:02 +02:00
2025-10-28 23:52:57 +00:00