#[repr(u32)]pub enum WakeOp {
Set = 0,
Add = 1,
Or = 2,
AndN = 3,
XOr = 4,
SetShift = 8,
AddShift = 9,
OrShift = 10,
AndNShift = 11,
XOrShift = 12,
}
Expand description
FUTEX_OP_*
operations for use with wake_op
.
Variants§
Set = 0
FUTEX_OP_SET
: uaddr2 = oparg;
Add = 1
FUTEX_OP_ADD
: uaddr2 += oparg;
Or = 2
FUTEX_OP_OR
: uaddr2 |= oparg;
AndN = 3
FUTEX_OP_ANDN
: uaddr2 &= ~oparg;
XOr = 4
FUTEX_OP_XOR
: uaddr2 ^= oparg;
SetShift = 8
FUTEX_OP_SET | FUTEX_OP_ARG_SHIFT
: uaddr2 = (oparg << 1);
AddShift = 9
FUTEX_OP_ADD | FUTEX_OP_ARG_SHIFT
: uaddr2 += (oparg << 1);
OrShift = 10
FUTEX_OP_OR | FUTEX_OP_ARG_SHIFT
: uaddr2 |= (oparg << 1);
AndNShift = 11
FUTEX_OP_ANDN | FUTEX_OP_ARG_SHIFT
: uaddr2 &= !(oparg << 1);
XOrShift = 12
FUTEX_OP_XOR | FUTEX_OP_ARG_SHIFT
: uaddr2 ^= (oparg << 1);
Trait Implementations§
impl Copy for WakeOp
impl Eq for WakeOp
impl StructuralPartialEq for WakeOp
Auto Trait Implementations§
impl Freeze for WakeOp
impl RefUnwindSafe for WakeOp
impl Send for WakeOp
impl Sync for WakeOp
impl Unpin for WakeOp
impl UnwindSafe for WakeOp
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
)