Function slos_hosted::host::interrupts::dispatcher [−][src]
pub fn dispatcher(kmain_thread: Thread)
Expand description
Dispatch virtual interrupts, if enabled
For each interrupt in the queue:
- Halt the hosted kmain thread (kmain hooks will park the thread)
- Call the
HostedInterrupt::dispatch
method for the interrupt - Unhalt the hosted kmain thread
- Manually unpark the hosted kmain thread
This function should be spawned in a new thread immediately after spawning
the thread running hosted_kmain
.