mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-14 11:13:07 +01:00
Use recursive_mutex instead of mutex to fix #2902
This commit is contained in:
1 parent
35e185309b
commit
e16c96d587
4 files changed
+5
-5
No files matched your search
+2
-2
@@ -183,7 +183,7 @@ T Read(const VAddr vaddr) {
|
||||
}
|
||||
|
||||
// The memory access might do an MMIO or cached access, so we have to lock the HLE kernel state
|
||||
std::lock_guard<std::mutex> lock(HLE::g_hle_lock);
|
||||
std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock);
|
||||
|
||||
PageType type = current_page_table->attributes[vaddr >> PAGE_BITS];
|
||||
switch (type) {
|
||||
@@ -224,7 +224,7 @@ void Write(const VAddr vaddr, const T data) {
|
||||
}
|
||||
|
||||
// The memory access might do an MMIO or cached access, so we have to lock the HLE kernel state
|
||||
std::lock_guard<std::mutex> lock(HLE::g_hle_lock);
|
||||
std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock);
|
||||
|
||||
PageType type = current_page_table->attributes[vaddr >> PAGE_BITS];
|
||||
switch (type) {
|
||||
|
||||
Reference in new issue
Block a user