Add timeout parameter for poller.wait

This commit is contained in:
Jianfeng Jiang
2023-09-21 10:36:49 +08:00
committed by Tate, Hongliang Tian
parent bd6a4d34ff
commit ec857e5205
11 changed files with 37 additions and 29 deletions

View File

@ -91,8 +91,7 @@ pub fn do_poll(poll_fds: &[PollFd], timeout: Option<Duration>) -> Result<usize>
return Ok(0);
}
// FIXME: respect timeout parameter
poller.wait();
poller.wait(timeout.as_ref())?;
}
}