Trait crayon::sched::latch::Latch

source ·
pub trait Latch {
    fn set(&self);
}
Expand description

We define various kinds of latches, which are all a primitive signaling mechanism. A latch starts as false. Eventually someone calls set() and it becomes true. You can test if it has been set by calling is_set().

Required Methods§

Set the latch, signalling others.

Implementations on Foreign Types§

Implementors§