mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Add timeout parameter for poller.wait
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
bd6a4d34ff
commit
ec857e5205
@ -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())?;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user