Struct cortex_m_rtfm::Threshold
[−]
[src]
pub struct Threshold<T> { /* fields omitted */ }
Preemption threshold
Methods
impl<PT> Threshold<PT>
[src]
fn raise<RC, RES, R, F>(&self, _resource: &'static RES, f: F) -> R where
RES: ResourceLike<Ceiling = RC>,
RC: Cmp<PT, Output = Greater> + Cmp<UMax, Output = Less> + Unsigned,
F: FnOnce(&Threshold<RC>) -> R,
RES: ResourceLike<Ceiling = RC>,
RC: Cmp<PT, Output = Greater> + Cmp<UMax, Output = Less> + Unsigned,
F: FnOnce(&Threshold<RC>) -> R,
Raises the preemption threshold to match the resource
ceiling