mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Remove the nonsense mutex in Poller
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
94eba6d85e
commit
9f125cd671
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user