diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-08 18:33:03 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-08 19:02:50 +1000 |
| commit | 79ecffd2ebfa5e5efd0c8496a6ae90aa31964596 (patch) | |
| tree | b9352147a3e5544cbc5b68099f0f30c0cf746d61 /src | |
| parent | 622f4d60627a43395797bb147a7c138171ee025d (diff) | |
Signal all semaphores on swapchain_monitor teardown
Diffstat (limited to 'src')
| -rw-r--r-- | src/strategies/low_latency2/swapchain_monitor.cc | 4 |
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 |
