Enum shared_memory::EventState
source · pub enum EventState {
Wait,
Signaled,
}
Expand description
Possible states for an event
Variants§
Wait
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”.
Signaled
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.