pub struct FutexWake { /* private fields */ }
Expand description
Wake up waiters on a futex, like but not equivalant to futex(2)
’s FUTEX_WAKE_BITSET
.
Wake any waiters on the futex indicated by futex
and at most val
futexes. futex_flags
indicates the futex2(2)
modifier flags. If a given bitset for who to wake is desired,
then that must be set in mask
. Use FUTEX_BITSET_MATCH_ANY
(truncated to futex bits) to
match any waiter on the given futex. flags
are currently unused and hence 0
must be
passed.
Implementations§
Source§impl FutexWake
impl FutexWake
Sourcepub const CODE: u8 = 52u8
pub const CODE: u8 = 52u8
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 FutexWake
impl RefUnwindSafe for FutexWake
impl !Send for FutexWake
impl !Sync for FutexWake
impl Unpin for FutexWake
impl UnwindSafe for FutexWake
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