#[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§
source§impl PartialEq for WakeOpCmp
impl PartialEq for WakeOpCmp
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