Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(driver): yield_now in push_blocking loop#816

Merged
Berrysoft merged 2 commits into
compio-rs:masterfrom
Berrysoft:add-yield-now
Mar 30, 2026
Merged

feat(driver): yield_now in push_blocking loop#816
Berrysoft merged 2 commits into
compio-rs:masterfrom
Berrysoft:add-yield-now

Conversation

@Berrysoft
Copy link
Copy Markdown
Member

Just synchronize with the io-uring driver: call yield_now when dispatch fails.

The IOCP driver doesn't need to call poll_blocking or something because all blocking results are posted to the IOCP kernel queue.

@Berrysoft Berrysoft requested a review from George-Miao March 29, 2026 17:29
@Berrysoft Berrysoft self-assigned this Mar 29, 2026
@Berrysoft Berrysoft marked this pull request as draft March 30, 2026 15:43
@Berrysoft Berrysoft marked this pull request as ready for review March 30, 2026 16:00
@Berrysoft
Copy link
Copy Markdown
Member Author

Fixed the io-uring & polling driver to avoid endless waiting when there's already blocking entries.

Copy link
Copy Markdown
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Berrysoft Berrysoft added this pull request to the merge queue Mar 30, 2026
Merged via the queue into compio-rs:master with commit f2ef0eb Mar 30, 2026
67 checks passed
@Berrysoft Berrysoft deleted the add-yield-now branch March 30, 2026 16:54
@github-actions github-actions Bot mentioned this pull request Mar 30, 2026
This was referenced Apr 21, 2026
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.

2 participants