Module ksched::task [−][src]
Expand description
Async executor and some basic futures.
Functions
get_priority | Retrieve the priority of a real-time task. |
get_quantum | Retrieve the quantum of a time-sharing task. |
preempt_point | Inject a preemptable point for fair scheduling and real-time scheduling. |
run | Run until all tasks in default executor are done. |
set_priority | Make a task into a real-time one with specific priority. |
set_quantum | Make a task into a time-sharing task with specific quantum per round. |
sleep | |
spawn | Spawn a task to the default executor. |
yield_now | Cooperatively gives up a timeslice to the task scheduler. |