diff options
| author | JosJuice <josjuice@gmail.com> | 2025-06-02 11:55:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-02 11:55:40 +0200 |
| commit | 58a70db588dbcdbebcb25531f85dbab5d236b60e (patch) | |
| tree | 8ec6657b45415dfc323d1348754ef231989634d3 | |
| parent | 88122ae9569287394519c755a726c78a6985b428 (diff) | |
| parent | 31d0756808459de863415a26d5cf808d53678c94 (diff) | |
Merge pull request #13718 from jordan-woyak/hardcore-deadlock
Config: Make s_callbacks_lock recursive to fix hardcore mode deadlock.
| -rw-r--r-- | Source/Core/Common/Config/Config.cpp | 2 |
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>; |
