diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-08 14:41:18 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-08 14:41:18 +1000 |
| commit | 6ae5ce31e34f3b15a25ada53e64a0098316f98c9 (patch) | |
| tree | e472a259dad0c34a5c86fb6b1dd31d7f63d22073 /src/strategies/low_latency2/device_strategy.cc | |
| parent | 51334609d3a81912e41afd133fbf23787e1894a1 (diff) | |
Don't take exclusive lock when collecting work for LowLatency2
Diffstat (limited to 'src/strategies/low_latency2/device_strategy.cc')
| -rw-r--r-- | src/strategies/low_latency2/device_strategy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strategies/low_latency2/device_strategy.cc b/src/strategies/low_latency2/device_strategy.cc index 227c385..fa44468 100644 --- a/src/strategies/low_latency2/device_strategy.cc +++ b/src/strategies/low_latency2/device_strategy.cc @@ -70,7 +70,7 @@ void LowLatency2DeviceStrategy::submit_swapchain_present_id( // monitor. auto work = [&]() -> std::vector<std::unique_ptr<FrameSpan>> { auto work = std::vector<std::unique_ptr<FrameSpan>>{}; - const auto lock = std::scoped_lock{this->device.mutex}; + const auto lock = std::shared_lock{this->device.mutex}; for (const auto& queue_iter : this->device.queues) { const auto& queue = queue_iter.second; |
