Struct solana_runtime::waitable_condvar::WaitableCondvar
source · pub struct WaitableCondvar {
pub mutex: Mutex<()>,
pub event: Condvar,
}
Fields§
§mutex: Mutex<()>
§event: Condvar
Implementations§
source§impl WaitableCondvar
impl WaitableCondvar
sourcepub fn notify_all(&self)
pub fn notify_all(&self)
wake up all threads waiting on this event
sourcepub fn notify_one(&self)
pub fn notify_one(&self)
wake up one thread waiting on this event
sourcepub fn wait_timeout(&self, timeout: Duration) -> bool
pub fn wait_timeout(&self, timeout: Duration) -> bool
wait on the event return true if timed out, false if event triggered
Trait Implementations§
source§impl Debug for WaitableCondvar
impl Debug for WaitableCondvar
source§impl Default for WaitableCondvar
impl Default for WaitableCondvar
source§fn default() -> WaitableCondvar
fn default() -> WaitableCondvar
Returns the “default value” for a type. Read more