video_core: Page manager and memory tracker improvenets (#3155)

* I don't know what to put here

* clang-format

* clang-format 2.0

* Deadlock free locking

* Por boost range lock implementation

* clang-format
This commit is contained in:
Lander Gallastegi
2025-06-26 18:38:53 +02:00
committed by GitHub
parent a49b13fe66
commit 9f37ede336
8 changed files with 176 additions and 42 deletions

View File

@@ -18,6 +18,9 @@ public:
void unlock() {
pthread_mutex_unlock(&mutex);
}
[[nodiscard]] bool try_lock() {
return pthread_mutex_trylock(&mutex) == 0;
}
private:
pthread_mutex_t mutex = PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP;