aboutsummaryrefslogtreecommitdiff
path: root/src/strategies/low_latency2/swapchain_monitor.cc
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-04-08 18:33:03 +1000
committerNicolas James <nj3ahxac@gmail.com>2026-04-08 19:02:50 +1000
commit79ecffd2ebfa5e5efd0c8496a6ae90aa31964596 (patch)
treeb9352147a3e5544cbc5b68099f0f30c0cf746d61 /src/strategies/low_latency2/swapchain_monitor.cc
parent622f4d60627a43395797bb147a7c138171ee025d (diff)
Signal all semaphores on swapchain_monitor teardown
Diffstat (limited to 'src/strategies/low_latency2/swapchain_monitor.cc')
-rw-r--r--src/strategies/low_latency2/swapchain_monitor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strategies/low_latency2/swapchain_monitor.cc b/src/strategies/low_latency2/swapchain_monitor.cc
index c2a328b..5d384f8 100644
--- a/src/strategies/low_latency2/swapchain_monitor.cc
+++ b/src/strategies/low_latency2/swapchain_monitor.cc
@@ -47,10 +47,10 @@ void SwapchainMonitor::do_monitor(const std::stop_token stoken) {
this->pending_signals.pop_front();
// If we're stopping, signal the semaphore and don't worry about work
- // actually completing.
+ // actually completing. But we MUST drain them, or we get a hang.
if (stoken.stop_requested()) {
pending_signal.wakeup_semaphore.signal(this->device);
- break;
+ continue;
}
// Grab mutex protected present delay before we sleep - doesn't matter