upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_constructor_oom_test.cpp
diff options
context:
space:
mode:
authorTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-30 04:50:29 +0100
committerTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-30 04:50:29 +0100
commitf19b5750ff931b8eab8519365c370d89436eb485 (patch)
treedf8eb2d84c175f12cf485520e4f848c5c65489fb /runtime/test/vk_queue_constructor_oom_test.cpp
parent1d22590b9fb5c0f51a6a7c0405f1f136e0696c0d (diff)
d3d12: a landing pool asks its limit once a batch, and parks no thread without LEONIDA_AB (D3D12-LAND-POOL-LIMIT-ONCE)
Since the helper counts went by turns, the views pool (8 threads, 4 at work) and the records pool (10 threads, 6 at work) have a limit function. Each helper called it under the pool's state lock before every number it took and after every wake, and the function read the environment (std::env::var for its _WIDE switch). As the limit was below the thread count, every batch also woke the parked helpers with notify_all: they read the environment under the lock and slept again. The limit is now asked once when a batch begins, kept in the pool's state, and helpers compare with that. Unless LEONIDA_AB names the _WIDE switch, the pool is made with exactly the threads that take part, as before the counts went by turns, so none is parked. By turns, the wide count is made and how many take part follows the switch, as it did.
Diffstat (limited to 'runtime/test/vk_queue_constructor_oom_test.cpp')
0 files changed, 0 insertions, 0 deletions