Function get_current_thread_control_block

Source
pub unsafe fn get_current_thread_control_block<T>() -> *mut Tcb<T>
Expand description

Get a pointer to the current thread control block, using the thread pointer.

ยงSafety

The TCB must actually contain runtime data of type T, and be initialized.