pub struct Futex<'a> { /* private fields */ }
Implementations§
source§impl<'a> Futex<'a>
impl<'a> Futex<'a>
pub fn new(futex: &AtomicU32) -> Futex<'a>
pub fn wait(&self, expected: u32, timeout: Option<Duration>) -> OsResult
pub fn wait_bitset( &self, expected: u32, timeout: Option<(Timespec, FutexClockId)>, bitset: u32 ) -> OsResult
pub fn wake(self, count: i32) -> OsResult<usize>
pub fn wake_bitset(self, count: i32, bitset: u32) -> OsResult<usize>
pub fn cmp_requeue( &self, nwakes: i32, new_futex: &Futex<'_>, nrequeues: i32, expected: u32 ) -> OsResult<usize>
pub fn requeue( &self, nwakes: i32, new_futex: &Futex<'_>, nrequeues: i32 ) -> OsResult<usize>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Futex<'a>
impl<'a> Send for Futex<'a>
impl<'a> Sync for Futex<'a>
impl<'a> Unpin for Futex<'a>
impl<'a> UnwindSafe for Futex<'a>
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