Skip to content

Commit 22afe2f

Browse files
authored
Merge pull request #66 from Berrysoft/dev/polling2
Try to use polling instead of mio.
2 parents f2107da + e311230 commit 22afe2f

File tree

11 files changed

+334
-252
lines changed

11 files changed

+334
-252
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ libc = "0.2"
7575

7676
# Other platform dependencies
7777
[target.'cfg(all(not(target_os = "linux"), unix))'.dependencies]
78-
mio = { version = "0.8", features = ["os-ext"] }
78+
polling = "3"
7979
libc = "0.2"
8080

8181
[features]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![docs.rs](https://img.shields.io/badge/docs.rs-compio-latest)](https://docs.rs/compio)
66
[![Azure DevOps builds](https://strawberry-vs.visualstudio.com/compio/_apis/build/status/Berrysoft.compio?branch=master)](https://strawberry-vs.visualstudio.com/compio/_build)
77

8-
A thread-per-core Rust runtime with IOCP/io_uring/mio.
8+
A thread-per-core Rust runtime with IOCP/io_uring/polling.
99
The name comes from "completion-based IO".
1010
This crate is inspired by [monoio](https://github.com/bytedance/monoio/).
1111

src/driver/mio/mod.rs

Lines changed: 0 additions & 229 deletions
This file was deleted.

src/driver/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ cfg_if::cfg_if! {
1717
mod iour;
1818
pub use iour::*;
1919
} else if #[cfg(unix)]{
20-
mod mio;
21-
pub use self::mio::*;
20+
mod poll;
21+
pub use poll::*;
2222
}
2323
}
2424

@@ -118,7 +118,7 @@ impl Proactor {
118118
/// attached to one driver, and could only be attached once, even if you
119119
/// `try_clone` it. It will cause unexpected result to attach the handle
120120
/// with one driver and push an op to another driver.
121-
/// * io-uring/mio: it will do nothing and return `Ok(())`
121+
/// * io-uring/polling: it will do nothing and return `Ok(())`.
122122
pub fn attach(&mut self, fd: RawFd) -> io::Result<()> {
123123
self.driver.attach(fd)
124124
}

0 commit comments

Comments
 (0)