Skip to content

Feat/reserve for with meta - #5

Merged
merlotqi merged 7 commits into
mainfrom
feat/reserve-for-with-meta
Jul 1, 2026
Merged

merlotqi merged 7 commits into
mainfrom
feat/reserve-for-with-meta

Conversation

@merlotqi

@merlotqi merlotqi commented Jul 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

merlotqi and others added 7 commits June 28, 2026 14:05
Replace the bare yield loop in reserve_for with a three-phase backoff
(spin -> yield -> sleep) matching atomic_backoff constants. The existing
reserve_for(size, timeout) overload delegates to the new meta-aware
version with an empty message_meta{}.

Co-Authored-By: Claude <noreply@anthropic.com>
Mirrors the fixed_writer change: three-phase backoff (spin -> yield -> sleep)
and a meta-aware overload. Existing reserve_for delegates to the new version.

Co-Authored-By: Claude <noreply@anthropic.com>
…th meta

Replace inlined try_reserve + yield loops in send_fixed_sized_for and
send_varlen_for with direct calls to fixed_writer::reserve_for and
varlen_writer::reserve_for. Removes the TODO comments about restoring
efficient OS-level waiting — the three-phase backoff is now in reserve_for.

Co-Authored-By: Claude <noreply@anthropic.com>
@merlotqi
merlotqi merged commit 97204cd into main Jul 1, 2026
9 checks passed
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