Skip to content

cancellation: Add deferred_cancellation struct that holds cancellation callbacks - #53

Merged
avdgrinten merged 5 commits into
managarm:masterfrom
avdgrinten:deferred-cancellation
Nov 6, 2026
Merged

avdgrinten merged 5 commits into
managarm:masterfrom
avdgrinten:deferred-cancellation

Conversation

@avdgrinten

Copy link
Copy Markdown
Member

This allows callers to drop locks between cancelling a cancellation_event and invoking the callbacks.

…ke callbacks outside of locks

Assisted-by: Claude Code (Opus 5.5)
If a let() operation is destructed without being started, neither the
intermediate value nor the inner operation were ever constructed.

Assisted-by: Claude Code (Opus 5.5)
@avdgrinten
avdgrinten force-pushed the deferred-cancellation branch from 1a4828a to e9d588b Compare November 6, 2026 16:08
@avdgrinten
avdgrinten merged commit ac8a702 into managarm:master Nov 6, 2026
2 checks passed
@avdgrinten
avdgrinten deleted the deferred-cancellation branch November 6, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant