Function slos_hosted::host::interrupts::clock_tick [−][src]
pub fn clock_tick()
Expand description
Update the system clock and queue tick interrupts
While the hosted system is running (that is, !SYSTEM.return_next_iter
):
- Update
slos::clock::BOOT_CLOCK
with the real time passed since the last iteration, - Queue a
HostedInterrupt::ClockTick
interrupt, - Sleep the current thread for ~50ms
This function should be spawned in a new thread immediately after spawning
the thread running hosted_kmain
.