Remove the nonsense mutex in Poller

This commit is contained in:
Ruihan Li
2024-07-14 17:47:11 +08:00
committed by Tate, Hongliang Tian
parent 94eba6d85e
commit 9f125cd671
34 changed files with 83 additions and 95 deletions

View File

@ -27,7 +27,7 @@ impl FileIo for Null {
Ok(buf.len())
}
fn poll(&self, mask: IoEvents, poller: Option<&Poller>) -> IoEvents {
fn poll(&self, mask: IoEvents, poller: Option<&mut Poller>) -> IoEvents {
let events = IoEvents::IN | IoEvents::OUT;
events & mask
}