async: rebase wheel on top of async engine
This commit is contained in:
parent
87a90a8ae4
commit
3875c63172
13 changed files with 218 additions and 285 deletions
|
|
@ -11,6 +11,7 @@ use {
|
|||
buffd::{BufFdIn, BufFdOut},
|
||||
vec_ext::VecExt,
|
||||
},
|
||||
wheel::Wheel,
|
||||
},
|
||||
jay_config::_private::bincode_ops,
|
||||
uapi::OwnedFd,
|
||||
|
|
@ -62,9 +63,9 @@ pub struct IoOut {
|
|||
}
|
||||
|
||||
impl IoOut {
|
||||
pub fn new(fd: AsyncFd) -> Self {
|
||||
pub fn new(fd: AsyncFd, wheel: &Rc<Wheel>) -> Self {
|
||||
Self {
|
||||
outgoing: BufFdOut::new(fd),
|
||||
outgoing: BufFdOut::new(fd, wheel),
|
||||
scratch: vec![],
|
||||
fds: vec![],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue