Skip to main content

current_thread_handle

Function current_thread_handle 

Source
pub fn current_thread_handle() -> Result<ThreadHandle, TaskError>
Expand description

Returns a strong handle for the calling scheduler thread.

ยงErrors

Returns TaskError::NotInitialized before runtime CPU publication, TaskError::CpuOwnerBorrowed for a reentrant owner query, or TaskError::NoRunnableThread before a current thread is installed.