Struct cortex_m_rtfm::Threshold [] [src]

pub struct Threshold { /* fields omitted */ }

Preemption threshold token

The preemption threshold indicates the priority a task must have to preempt the current context. For example a threshold of 2 indicates that only interrupts / exceptions with a priority of 3 or greater can preempt the current context

Methods

impl Threshold
[src]

Creates a new Threshold token

This API is meant to be used to create abstractions and not to be directly used by applications.

Creates a Threshold token with maximum value

This API is meant to be used to create abstractions and not to be directly used by applications.

Returns the value of this Threshold token

Trait Implementations

impl !Send for Threshold
[src]