完成 CMP v1 调度、阻塞卸载与原生 TCP 客户端 - #10
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
注册 for free
to join this conversation on GitHub.
Already have an account?
登录 to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
TaskGroup、可复用手动重置事件,以及可复现的 v1 readiness 压测。ThreadPool:显式 Scheduler、共享 FIFO、协作取消、排空关闭,并记录独立性能基线。run_blocking():在调用者指定的独立线程池隔离同步工作,并显式返回目标 Scheduler。IoContext、move-onlyTcpStream、数值 IPv4/IPv6 connect、partial read、write-all、取消、关闭与 shutdown 竞态。关键边界
1.38.1仅由 TCP 分区私有导入,公共 API 不暴露 Asio 类型。IoContext固定一个私有 I/O driver;每个 TCP 操作通过调用者指定的 Scheduler 返回。本地验证
mcpp build --profile dev --strict --cache=off:通过。mcpp test --profile dev --strict --cache=off:10 个二进制,140/140 通过。mcpp build --profile release --strict --cache=off:通过。mcpp test --profile release --strict --cache=off:10 个二进制,140/140 通过。examples/basic:全部预期输出一致,退出码 0。远程验收
本 PR 以 Linux x86_64、macOS arm64、Windows x86_64 的 build、test、独立示例全部通过为合并前门禁。