upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorsds-228 <329233051+sds-228@users.noreply.github.com>2026-11-23 04:44:51 +0300
committersds-228 <329233051+sds-228@users.noreply.github.com>2026-11-23 04:44:51 +0300
commitdf99c89162d18c30fd255cd47e85ce6499413c8b (patch)
tree4559776c843fd87ed5fad0602fb0d9d53e49f2c2 /runtime/test/vk_queue_query_sync_test.cpp
parent03b09a086592a197db64d91655c6e65c30764d96 (diff)
vulkan: make fence cancel wait for in-flight callbacks
run() unlocked mutex_ before dispatching ready entries, while cancel() only waited for an active vkWaitSemaphores. A cancel could return and destroy the VkSemaphore while a callback for it was still running. Record each dispatched entry with its owning thread before unlocking; cancel waits for entries it does not own, so callbacks can still re-entrantly cancel their own semaphore. All four run() dispatch paths use the same helper. Adds a deterministic regression where cancel must block until a blocked callback has used the semaphore; reverting only the wait fails it. AI-assisted (OpenCode)
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions