summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config/Config.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-05-30 17:33:01 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-05-30 17:33:01 -0500
commit31d0756808459de863415a26d5cf808d53678c94 (patch)
tree0ca582b955120784fe62641f3dc37cdf3676c96d /Source/Core/Common/Config/Config.cpp
parent53b54406bd546b507822a3bd30311aa0cd96ee71 (diff)
Config: Make s_callbacks_lock recursive to fix hardcore mode deadlock.
Diffstat (limited to 'Source/Core/Common/Config/Config.cpp')
-rw-r--r--Source/Core/Common/Config/Config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Config/Config.cpp b/Source/Core/Common/Config/Config.cpp
index b5aefc0e9d..62ac9e73c4 100644
--- a/Source/Core/Common/Config/Config.cpp
+++ b/Source/Core/Common/Config/Config.cpp
@@ -24,7 +24,7 @@ static std::atomic<u32> s_callback_guards = 0;
static std::atomic<u64> s_config_version = 0;
static std::shared_mutex s_layers_rw_lock;
-static std::mutex s_callbacks_lock;
+static std::recursive_mutex s_callbacks_lock;
using ReadLock = std::shared_lock<std::shared_mutex>;
using WriteLock = std::unique_lock<std::shared_mutex>;