mirror of
https://github.com/stenzek/duckstation.git
synced 2026-10-11 22:49:58 +00:00
Misc: Replace std::shared_mutex with Threading::SharedMutex
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user