#[repr(C)]pub struct ThreadSyncWake {
pub reference: ThreadSyncReference,
pub count: usize,
}
Expand description
Specification for a thread wake request.
Fields§
§reference: ThreadSyncReference
Reference to the word for which we will wake up threads that have gone to sleep.
count: usize
Number of threads to wake up.
Implementations§
source§impl ThreadSyncWake
impl ThreadSyncWake
sourcepub fn new(reference: ThreadSyncReference, count: usize) -> Self
pub fn new(reference: ThreadSyncReference, count: usize) -> Self
Construct a new thread wake request. The reference works the same was as in
ThreadSyncSleep. The kernel will wake up count
threads that are sleeping on this
particular word of object memory. If you want to wake up all threads, you can supply
usize::MAX
.
Trait Implementations§
source§impl Clone for ThreadSyncWake
impl Clone for ThreadSyncWake
source§fn clone(&self) -> ThreadSyncWake
fn clone(&self) -> ThreadSyncWake
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 ThreadSyncWake
impl Debug for ThreadSyncWake
source§impl Hash for ThreadSyncWake
impl Hash for ThreadSyncWake
source§impl Ord for ThreadSyncWake
impl Ord for ThreadSyncWake
source§fn cmp(&self, other: &ThreadSyncWake) -> Ordering
fn cmp(&self, other: &ThreadSyncWake) -> 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 ThreadSyncWake
impl PartialEq for ThreadSyncWake
source§impl PartialOrd for ThreadSyncWake
impl PartialOrd for ThreadSyncWake
impl Copy for ThreadSyncWake
impl Eq for ThreadSyncWake
impl StructuralPartialEq for ThreadSyncWake
Auto Trait Implementations§
impl Freeze for ThreadSyncWake
impl !ObjSafe for ThreadSyncWake
impl RefUnwindSafe for ThreadSyncWake
impl Send for ThreadSyncWake
impl !Sync for ThreadSyncWake
impl Unpin for ThreadSyncWake
impl UnwindSafe for ThreadSyncWake
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.