From ecaf30c5cea321c55f6a5ce827afbfc6afa0e9b1 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Sat, 4 Apr 2026 14:20:59 +1100 Subject: Lock in swapchain_monitor::update_params, fix missing CMakeList.txt modification --- src/swapchain_monitor.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/swapchain_monitor.hh') diff --git a/src/swapchain_monitor.hh b/src/swapchain_monitor.hh index eaf4933..9192f55 100644 --- a/src/swapchain_monitor.hh +++ b/src/swapchain_monitor.hh @@ -12,7 +12,6 @@ #include #include -#include "instance_context.hh" #include "queue_context.hh" namespace low_latency { @@ -29,6 +28,8 @@ class SwapchainMonitor { protected: const DeviceContext& device; + std::mutex mutex; + // Configurarable params for this swapchain. std::chrono::milliseconds present_delay = std::chrono::milliseconds{0}; bool was_low_latency_requested = false; @@ -79,7 +80,6 @@ class ReflexSwapchainMonitor final : public SwapchainMonitor { }; std::deque semaphore_submissions; - std::mutex mutex; std::condition_variable_any cv; std::jthread monitor_worker; -- cgit v1.2.3