Misc: Replace std::shared_mutex with Threading::SharedMutex

This commit is contained in:
Stenzek
2026-09-28 21:17:34 +10:00
parent d78fd23db9
commit 8a46ed8b7d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,10 +7,10 @@
#include "common/heterogeneous_containers.h"
#include "common/log.h"
#include "common/string_util.h"
#include "common/threading.h"
#include "common/time_helpers.h"
#include <cstdarg>
#include <shared_mutex>
LOG_CHANNEL(Host);
@@ -25,7 +25,7 @@ using TranslationStringContextMap = UnorderedStringMap<TranslationStringMap>;
struct TranslationLocals
{
std::shared_mutex translation_string_mutex;
Threading::SharedMutex translation_string_mutex;
TranslationStringContextMap translation_string_map;
std::vector<char> translation_string_cache;
u32 translation_string_cache_pos;
+2 -2
View File
@@ -10,6 +10,7 @@
#include "vulkan_stream_buffer.h"
#include "common/dimensional_array.h"
#include "common/threading.h"
#include <array>
#include <atomic>
@@ -17,7 +18,6 @@
#include <deque>
#include <functional>
#include <memory>
#include <shared_mutex>
#include <string>
#include <unordered_map>
#include <vector>
@@ -439,7 +439,7 @@ private:
VkQueryPool m_timestamp_query_pool = VK_NULL_HANDLE;
std::unordered_map<RenderPassCacheKey, VkRenderPass, RenderPassCacheKeyHash> m_render_pass_cache;
std::shared_mutex m_render_pass_cache_mutex;
Threading::SharedMutex m_render_pass_cache_mutex;
GPUFramebufferManager<VkFramebuffer, CreateFramebuffer, DestroyFramebuffer> m_framebuffer_manager;
VkPipelineCache m_pipeline_cache = VK_NULL_HANDLE;