Skip to main content

tick_all_timers

Function tick_all_timers 

Source
pub fn tick_all_timers(current_time_ns: u64)
Expand description

Global timer tick function to be called from timer interrupt handler. Checks all tasks for expired interval timers and delivers signals.

Zero-allocation: iterates tasks directly under the scheduler try_lock and sets pending signals via atomic ops. This avoids Vec/heap allocation in interrupt context which would deadlock against the buddy allocator.