LookupCache: Convert mutex to new WritePriorityMutex

Changes the single highly-contended lock in `FindBlock` to be a
read-lock.
This commit is contained in:
Ryan Houdek committed 2025-11-04 15:48:52 -08:00
1 parent d2d0ca2de9
commit c034e99aaf
2 files changed
+25 -10

No files matched your search

@@ -76,7 +76,7 @@ LookupCache::~LookupCache() {
// These will get freed when their memory allocators are deallocated.
}
void LookupCache::ClearL2Cache(const FEXCore::LookupCacheWriteLockToken& lk) {
void LookupCache::ClearL2Cache(const FEXCore::LookupCacheReadLockToken& lk) {
// Clear out the page memory
// PagePointer and PageMemory are sequential with each other. Clear both at once.
FEXCore::Allocator::VirtualDontNeed(reinterpret_cast<void*>(PagePointer),