pub struct FutexWait { /* private fields */ }
Expand description
Wait on a futex, like but not equivalant to futex(2)
’s FUTEX_WAIT_BITSET
.
Wait on a futex at address futex
and which still has the value val
and with futex2(2)
flags of futex_flags
. musk
can be set to a specific bitset mask, which will be matched
by the waking side to decide who to wake up. To always get woken, an application may use
FUTEX_BITSET_MATCH_ANY
(truncated to futex bits). futex_flags
follows the futex2(2)
flags, not the futex(2)
v1 interface flags. flags
are currently unused and hence 0
must be passed.
Implementations§
Source§impl FutexWait
impl FutexWait
Sourcepub const CODE: u8 = 51u8
pub const CODE: u8 = 51u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.
pub fn new(futex: *const u32, val: u64, mask: u64, futex_flags: u32) -> Self
pub const fn flags(self, flags: u32) -> Self
pub fn build(self) -> Entry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FutexWait
impl RefUnwindSafe for FutexWait
impl !Send for FutexWait
impl !Sync for FutexWait
impl Unpin for FutexWait
impl UnwindSafe for FutexWait
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