feat(async,time): add injected-clock TimerQueue and clock saturation helpers (M-TIME-03 B1)
- NEW Async/Timer.hpp: TimerQueue (stable (deadline, seq) min-heap, bounded tombstones, explicit poll_expired, callbacks outside the lock, close/destroy deliver TimerEvent::closed), shared-state TimerHandle safe after queue destruction, sleep_until/sleep_for settling exactly once and resuming via post_completion; documented sleep-task lifetime and cancel-under-lock rules - Time/Clock.hpp: saturating_add, deadline_after - Tests: TimerQueue (15), DeadlineDomains (2), ClockSaturation (1); race loops count failures to stay under the runner's 1,000-assertion retention (X-QA-02) Review: W11-REVIEW-B1 (CHANGES_REQUIRED F1-F3 fixed by root: test counters, header lifetime/cancel docs) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95785ed47a
commit
99a1100bb1
5 files changed
+2269
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user