Skip to content

manual_reset_event::set() and co_set() wake waiters in bulk batches#263

Merged
tzcnt merged 1 commit into
mainfrom
manual_reset_event_post_bulk
Jun 26, 2026
Merged

manual_reset_event::set() and co_set() wake waiters in bulk batches#263
tzcnt merged 1 commit into
mainfrom
manual_reset_event_post_bulk

Conversation

@tzcnt

@tzcnt tzcnt commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Wake up to 64 waiters at once via post_bulk(). Batches are gated by shared executor/priority affinity. This reduces overhead significantly when waking large numbers of waiters on a single event.

API change: co_set() / set() now return the number of waiters woken (previously void).

@tzcnt tzcnt force-pushed the manual_reset_event_post_bulk branch from 9b90869 to 75d7604 Compare June 26, 2026 04:33
@tzcnt tzcnt merged commit 3c0c4f0 into main Jun 26, 2026
18 of 53 checks passed
@tzcnt tzcnt deleted the manual_reset_event_post_bulk branch June 26, 2026 04:34
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