Skip to main content

Module sched

Module sched 

Source

Structs§

RtAttrs

Functions§

current_id
Raw UId::as_usize() of the calling thread, or -1 if there is no current thread (kernel pre-init).
exit
sleep
sleep_for
spawn_thread
Spawn a thread. ctx is delivered to func_ptr as its sole argument; caller owns the lifetime of the pointee.
yield_thread