diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-04-04 14:20:59 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-04-04 14:20:59 +1100 |
| commit | ecaf30c5cea321c55f6a5ce827afbfc6afa0e9b1 (patch) | |
| tree | 1568661c33ea4eb939e39ca3cf42bbdb2be3c2f1 /src/swapchain_monitor.hh | |
| parent | effef8d4c4012f415c8cf869f9999232862009e2 (diff) | |
Lock in swapchain_monitor::update_params, fix missing CMakeList.txt modification
Diffstat (limited to 'src/swapchain_monitor.hh')
| -rw-r--r-- | src/swapchain_monitor.hh | 4 |
1 files changed, 2 insertions, 2 deletions
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 <mutex> #include <thread> -#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<SemaphoreSubmissions> semaphore_submissions; - std::mutex mutex; std::condition_variable_any cv; std::jthread monitor_worker; |
