upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/queue_holds.h
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 13:17:55 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 13:17:55 -0500
commitbbf861fbb4ea51ca18cd6f372797111984b6f8aa (patch)
tree81ac99a1a6d61841cca3562fab529cf38348c73f /runtime/src/queue_holds.h
parent4645a3f62a7655ce69b930da70bdc1a858d1d0a1 (diff)
parentbdbc7e9236465c5d6a1305de6edd3fc09c2d6fd9 (diff)
Merge main into fix/depth16-quantise-fallback
runtime/CMakeLists.txt: main added the heavy_pipeline_cache, pipeline_cache_journal and compile_helper tests where this branch adds depth24_fragment; both sides are kept. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/queue_holds.h')
-rw-r--r--runtime/src/queue_holds.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/src/queue_holds.h b/runtime/src/queue_holds.h
index 2839d4210..40cc33117 100644
--- a/runtime/src/queue_holds.h
+++ b/runtime/src/queue_holds.h
@@ -93,6 +93,13 @@ public:
93 return it == fences_.end() || it->second < value; 93 return it == fences_.end() || it->second < value;
94 } 94 }
95 95
96 // The highest Signal submitted for the fence (or set by the CPU); 0 for an unknown semaphore.
97 std::uint64_t submitted_value(Semaphore semaphore) const {
98 std::lock_guard lock(mutex_);
99 const auto it = fences_.find(semaphore);
100 return it == fences_.end() ? 0 : it->second;
101 }
102
96 // true when no submitted Signal reaches `value` yet. Unknown semaphores are satisfied. 103 // true when no submitted Signal reaches `value` yet. Unknown semaphores are satisfied.
97 bool pending(Semaphore semaphore, std::uint64_t value) const { 104 bool pending(Semaphore semaphore, std::uint64_t value) const {
98 std::lock_guard lock(mutex_); 105 std::lock_guard lock(mutex_);