mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-19 20:46:35 +00:00
Wake up background polling thread when old_instant is 0
Co-authored-by: Ruihan Li <lrh2000@pku.edu.cn>
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
328ce9e92c
commit
3981cd63cd
@ -177,7 +177,7 @@ impl IfaceCommon {
|
||||
let new_instant = instant.total_millis() as u64;
|
||||
self.next_poll_at_ms.store(new_instant, Ordering::Relaxed);
|
||||
|
||||
if new_instant < old_instant {
|
||||
if old_instant == 0 || new_instant < old_instant {
|
||||
self.polling_wait_queue.wake_all();
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user