pub struct Futex { /* private fields */ }Implementations§
Source§impl Futex
impl Futex
pub fn new(value: u32) -> Futex
pub fn load(&self) -> u32
pub fn store(&self, value: u32)
pub fn wait( &self, expected: u32, timeout: Option<Duration>, ) -> Result<(), FutexError>
pub fn wake_one(&self) -> usize
pub fn wake_all(&self) -> usize
pub fn as_atomic(&self) -> &Atomic<u32>
Auto Trait Implementations§
impl !Freeze for Futex
impl RefUnwindSafe for Futex
impl Send for Futex
impl Sync for Futex
impl Unpin for Futex
impl UnsafeUnpin for Futex
impl UnwindSafe for Futex
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