[][src]Trait drone_cortex_m::thr::ThreadLocal

pub trait ThreadLocal: 'static {
    fn task(&self) -> &TaskCell;
fn preempted(&self) -> &PreemptedCell; }

Generic thread-local storage.

Required methods

fn task(&self) -> &TaskCell

Returns a reference to the task context cell.

This method is safe because the type doesn't have public methods.

fn preempted(&self) -> &PreemptedCell

Returns a reference to the previous thread index cell.

This method is safe because the type doesn't have public methods.

Loading content...

Implementors

Loading content...