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]
unsafe fn new(value: u8) -> 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.
unsafe fn max() -> Threshold
[src]
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.
fn value(&self) -> u8
[src]
Returns the value of this Threshold
token