aboutsummaryrefslogtreecommitdiff
path: root/src/swapchain_monitor.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/swapchain_monitor.hh')
-rw-r--r--src/swapchain_monitor.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/swapchain_monitor.hh b/src/swapchain_monitor.hh
index 4fed3f8..e8603b5 100644
--- a/src/swapchain_monitor.hh
+++ b/src/swapchain_monitor.hh
@@ -92,8 +92,12 @@ class ReflexSwapchainMonitor final : public SwapchainMonitor {
std::unique_ptr<QueueContext::Submissions> submissions) override;
};
-// Much simpler synchronous waiting with no thread requirement.
+// Much simpler synchronous waiting without another monitor thread - still need
+// to synchronise across threads however.
class AntiLagSwapchainMonitor final : public SwapchainMonitor {
+ private:
+ std::mutex mutex;
+
public:
AntiLagSwapchainMonitor(const DeviceContext& device,
const bool was_low_latency_requested);