diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-07 01:43:56 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-07 01:43:56 +1000 |
| commit | 341b9b65a57dee1d4d16ec0994fe9a414b542ba5 (patch) | |
| tree | 882c7600607daf6e885024929c9cd5bcfb4e4459 /src/strategies/low_latency2 | |
| parent | b725e39d1a38e018e72389de7d72d7db351a8ccb (diff) | |
Fix rare race when timestamps are returned to the pool and reused before their work completes
Diffstat (limited to 'src/strategies/low_latency2')
| -rw-r--r-- | src/strategies/low_latency2/swapchain_monitor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strategies/low_latency2/swapchain_monitor.cc b/src/strategies/low_latency2/swapchain_monitor.cc index 4c19251..b6d4dd0 100644 --- a/src/strategies/low_latency2/swapchain_monitor.cc +++ b/src/strategies/low_latency2/swapchain_monitor.cc @@ -59,7 +59,8 @@ void SwapchainMonitor::do_monitor(const std::stop_token stoken) { lock.unlock(); for (const auto& submission : semaphore_submission.submissions) { if (!submission.empty()) { - submission.back()->end->await_time(); + const auto& last = submission.back(); + last->handle->await_end_time(); } } |
