pub struct Condvar {
futex: AtomicU32,
}
Fields§
§futex: AtomicU32
Implementations§
source§impl Condvar
impl Condvar
pub const fn new() -> Self
pub fn notify_one(&self)
pub fn notify_all(&self)
pub unsafe fn wait(&self, mutex: &Mutex)
pub unsafe fn wait_timeout(&self, mutex: &Mutex, timeout: Duration) -> bool
unsafe fn wait_optional_timeout( &self, mutex: &Mutex, timeout: Option<Duration> ) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for Condvar
impl Send for Condvar
impl Sync for Condvar
impl Unpin for Condvar
impl UnwindSafe for Condvar
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more