#[repr(u32)]pub enum ThreadSyncOp {
Equal = 0,
}
Expand description
Possible operations the kernel can perform when looking at the supplies reference and the
supplied value. If the operation *reference OP value
evaluates to true (or false if the INVERT
flag is passed), then the thread is put
to sleep.
Variants§
Equal = 0
Compare for equality
Implementations§
Source§impl ThreadSyncOp
impl ThreadSyncOp
Sourcepub fn check<T: Eq + PartialEq + Ord + PartialOrd>(
&self,
a: T,
b: T,
flags: ThreadSyncFlags,
) -> bool
pub fn check<T: Eq + PartialEq + Ord + PartialOrd>( &self, a: T, b: T, flags: ThreadSyncFlags, ) -> bool
Apply the operation to two values, returning the result.
Trait Implementations§
Source§impl Clone for ThreadSyncOp
impl Clone for ThreadSyncOp
Source§fn clone(&self) -> ThreadSyncOp
fn clone(&self) -> ThreadSyncOp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ThreadSyncOp
impl Debug for ThreadSyncOp
Source§impl Hash for ThreadSyncOp
impl Hash for ThreadSyncOp
Source§impl Ord for ThreadSyncOp
impl Ord for ThreadSyncOp
Source§fn cmp(&self, other: &ThreadSyncOp) -> Ordering
fn cmp(&self, other: &ThreadSyncOp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThreadSyncOp
impl PartialEq for ThreadSyncOp
Source§impl PartialOrd for ThreadSyncOp
impl PartialOrd for ThreadSyncOp
impl Copy for ThreadSyncOp
impl Eq for ThreadSyncOp
impl StructuralPartialEq for ThreadSyncOp
Auto Trait Implementations§
impl Freeze for ThreadSyncOp
impl ObjSafe for ThreadSyncOp
impl RefUnwindSafe for ThreadSyncOp
impl Send for ThreadSyncOp
impl Sync for ThreadSyncOp
impl Unpin for ThreadSyncOp
impl UnwindSafe for ThreadSyncOp
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