diff --git a/src/dxvk/dxvk_gpu_event.cpp b/src/dxvk/dxvk_gpu_event.cpp index 55a5004c0..b54303f7d 100644 --- a/src/dxvk/dxvk_gpu_event.cpp +++ b/src/dxvk/dxvk_gpu_event.cpp @@ -49,7 +49,7 @@ namespace dxvk { DxvkGpuEventHandle DxvkGpuEventPool::allocEvent() { VkEvent event = VK_NULL_HANDLE; - { std::lock_guard lock(m_mutex); + { std::lock_guard lock(m_mutex); if (m_events.size() > 0) { event = m_events.back(); @@ -77,7 +77,7 @@ namespace dxvk { void DxvkGpuEventPool::freeEvent(VkEvent event) { - std::lock_guard lock(m_mutex); + std::lock_guard lock(m_mutex); m_events.push_back(event); } diff --git a/src/dxvk/dxvk_gpu_event.h b/src/dxvk/dxvk_gpu_event.h index 143ceacfb..d1f4d1b4c 100644 --- a/src/dxvk/dxvk_gpu_event.h +++ b/src/dxvk/dxvk_gpu_event.h @@ -111,7 +111,7 @@ namespace dxvk { private: Rc m_vkd; - sync::Spinlock m_mutex; + dxvk::mutex m_mutex; std::vector m_events; };