Struct rayon_core::registry::ThreadInfo
source · struct ThreadInfo {
primed: LockLatch,
stopped: LockLatch,
terminate: OnceLatch,
stealer: Stealer<JobRef>,
}
Fields§
§primed: LockLatch
Latch set once thread has started and we are entering into the main loop. Used to wait for worker threads to become primed, primarily of interest for benchmarking.
stopped: LockLatch
Latch is set once worker thread has completed. Used to wait until workers have stopped; only used for tests.
terminate: OnceLatch
The latch used to signal that terminated has been requested.
This latch is set by the terminate
method on the
Registry
, once the registry’s main “terminate” counter
reaches zero.
stealer: Stealer<JobRef>
the “stealer” half of the worker’s deque
Implementations§
source§impl ThreadInfo
impl ThreadInfo
fn new(stealer: Stealer<JobRef>) -> ThreadInfo
Auto Trait Implementations§
impl !Freeze for ThreadInfo
impl RefUnwindSafe for ThreadInfo
impl Send for ThreadInfo
impl Sync for ThreadInfo
impl Unpin for ThreadInfo
impl UnwindSafe for ThreadInfo
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