#[repr(u32)]pub enum WakeOpCmp {
Eq = 0,
Ne = 1,
Lt = 2,
Le = 3,
Gt = 4,
Ge = 5,
}
Expand description
FUTEX_OP_CMP_*
operations for use with wake_op
.
Variants§
Eq = 0
FUTEX_OP_CMP_EQ
: if oldval == cmparg { wake(); }
Ne = 1
FUTEX_OP_CMP_EQ
: if oldval != cmparg { wake(); }
Lt = 2
FUTEX_OP_CMP_EQ
: if oldval < cmparg { wake(); }
Le = 3
FUTEX_OP_CMP_EQ
: if oldval <= cmparg { wake(); }
Gt = 4
FUTEX_OP_CMP_EQ
: if oldval > cmparg { wake(); }
Ge = 5
FUTEX_OP_CMP_EQ
: if oldval >= cmparg { wake(); }
Trait Implementations§
impl Copy for WakeOpCmp
impl Eq for WakeOpCmp
impl StructuralPartialEq for WakeOpCmp
Auto Trait Implementations§
impl Freeze for WakeOpCmp
impl RefUnwindSafe for WakeOpCmp
impl Send for WakeOpCmp
impl Sync for WakeOpCmp
impl Unpin for WakeOpCmp
impl UnwindSafe for WakeOpCmp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)