Skip to content

Commit 4894162

Browse files
authored
Merge pull request #4683 from RalfJung/epoll-without-ready
epoll: get rid of separate ready_list
2 parents 37c660f + dfca7d2 commit 4894162

File tree

5 files changed

+134
-152
lines changed

5 files changed

+134
-152
lines changed

src/shims/unix/fd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_target::spec::Os;
1010

1111
use crate::shims::files::FileDescription;
1212
use crate::shims::sig::check_min_vararg_count;
13-
use crate::shims::unix::linux_like::epoll::EpollReadyEvents;
13+
use crate::shims::unix::linux_like::epoll::EpollEvents;
1414
use crate::shims::unix::*;
1515
use crate::*;
1616

@@ -62,8 +62,8 @@ pub trait UnixFileDescription: FileDescription {
6262
throw_unsup_format!("cannot flock {}", self.name());
6363
}
6464

65-
/// Check the readiness of file description.
66-
fn get_epoll_ready_events<'tcx>(&self) -> InterpResult<'tcx, EpollReadyEvents> {
65+
/// Return which epoll events are currently active.
66+
fn epoll_active_events<'tcx>(&self) -> InterpResult<'tcx, EpollEvents> {
6767
throw_unsup_format!("{}: epoll does not support this file description", self.name());
6868
}
6969
}

0 commit comments

Comments
 (0)