Enum shared_memory::EventState[][src]

pub enum EventState {
    Wait,
    Signaled,
}

Possible states for an event

Variants

An event set to "Wait" will cause subsequent wait() calls to block

This is mostly usefull for manual events as auto events automatically reset to "Wait".

An event set to "Signaled" will unblock threads who are blocks on wait() calls.

If this is an Auto lock, only one waiting thread will be unblocked as the state will be automatically set to WAIT after the first threads wakes up.

Auto Trait Implementations

impl Send for EventState

impl Sync for EventState