pub struct LargeThreadData { /* private fields */ }Expand description
Parker state for up to 64 threads
Implementations§
Source§impl LargeThreadData
impl LargeThreadData
Sourcepub const MAX_THREADS: usize = 64usize
pub const MAX_THREADS: usize = 64usize
The maximum number of threads supported by this parker
Trait Implementations§
Source§impl Debug for LargeThreadData
impl Debug for LargeThreadData
Source§impl ThreadData for LargeThreadData
impl ThreadData for LargeThreadData
Source§fn max_threads(&self) -> Option<usize>
fn max_threads(&self) -> Option<usize>
Maximum number of threads supported by this parker implementation.
Source§fn prepare_park(&self, thread_id: usize)
fn prepare_park(&self, thread_id: usize)
Prepare to go to sleep.
Source§fn abort_park(&self, thread_id: usize)
fn abort_park(&self, thread_id: usize)
Abort attempt at going to sleep.
Source§fn park(&self, thread_id: usize) -> ParkResult
fn park(&self, thread_id: usize) -> ParkResult
Parks this thread until it gets woken up.
Source§fn unpark_one(&self)
fn unpark_one(&self)
Unparks at least one thread, if any threads are sleeping.
It may unpark more than one thread for efficiency.
Source§fn unpark_all(&self)
fn unpark_all(&self)
Unpark all sleeping threads.
Auto Trait Implementations§
impl !Freeze for LargeThreadData
impl RefUnwindSafe for LargeThreadData
impl Send for LargeThreadData
impl Sync for LargeThreadData
impl Unpin for LargeThreadData
impl UnwindSafe for LargeThreadData
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