We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2972f3 commit 3770133Copy full SHA for 3770133
1 file changed
compio-driver/src/sys/driver/poll/mod.rs
@@ -173,6 +173,8 @@ impl Driver {
173
{
174
let mut events = std::mem::take(&mut self.events);
175
let res = f(self, &mut events);
176
+ // Clear the notification state to avoid empty loops.
177
+ self.notify.set_awake();
178
self.events = events;
179
res
180
}
@@ -505,7 +507,6 @@ impl Driver {
505
507
506
508
509
- this.notify.set_awake();
510
Ok(())
511
})
512
0 commit comments