MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / check_timer

Function check_timer

os/src/timer.rs:62–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62pub fn check_timer() {
63 let current_ms = get_time_ms();
64 TIMERS.exclusive_session(|timers| {
65 while let Some(timer) = timers.peek() {
66 if timer.expire_ms <= current_ms {
67 wakeup_task(Arc::clone(&timer.task));
68 timers.pop();
69 } else {
70 break;
71 }
72 }
73 });
74}

Callers 2

trap_handlerFunction · 0.85
trap_from_kernelFunction · 0.85

Calls 4

get_time_msFunction · 0.85
wakeup_taskFunction · 0.85
cloneFunction · 0.85
exclusive_sessionMethod · 0.80

Tested by

no test coverage detected