Structs§
- Auto
Expiring Preempt Disabler - RAII guard that sets a timeslice extension for its scope.
- Auto
Preempt Disabler - RAII guard that disables preemption for its scope.
- FxtRef
- Rust representation of the C++
FxtRefstruct. - Thread
Ptr - Type-safe wrapper around a raw pointer to a Zircon kernel Thread.
Functions§
- create⚠
- Creates a new kernel thread with default priority.
- preempt_
clear_ timeslice_ extension - Clears an expiring timeslice extension on the current thread’s preemption state.
- preempt_
disable - Disables preemption on the current thread.
- preempt_
enable - Re-enables preemption on the current thread.
- preempt_
set_ timeslice_ extension - Sets a timeslice extension on the current thread’s preemption state.
- restricted_
enter - Enters restricted mode using the given vector table pointer and context.
- sleep_
relative - Sleeps the current thread for the specified relative duration.
- spawn⚠
- Spawns a new kernel thread with default priority and resumes it.
- yield
- Yields the current thread’s CPU time slice.