Skip to content

Commit

Permalink
video_core: Use adaptive mutex on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolix29 authored Jan 13, 2025
1 parent 964e303 commit 2fc41c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video_core/buffer_cache/word_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <span>
#include <utility>

#ifdef __linux__
#include "common/adaptive_mutex.h"
#endif
#include "common/spin_lock.h"
#include "common/types.h"
#include "video_core/page_manager.h"
Expand Down Expand Up @@ -272,7 +275,11 @@ class RegionManager {
}
}

#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
Common::AdaptiveMutex lock;
#else
Common::SpinLock lock;
#endif
PageManager* tracker;
VAddr cpu_addr = 0;
WordsArray cpu;
Expand Down

0 comments on commit 2fc41c7

Please sign in to comment.