diff options
| author | sds-228 <329233051+sds-228@users.noreply.github.com> | 2026-11-23 04:44:51 +0300 |
|---|---|---|
| committer | sds-228 <329233051+sds-228@users.noreply.github.com> | 2026-11-23 04:44:51 +0300 |
| commit | df99c89162d18c30fd255cd47e85ce6499413c8b (patch) | |
| tree | 4559776c843fd87ed5fad0602fb0d9d53e49f2c2 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (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