struct ThreadInfo {
    primed: LockLatch,
    stopped: LockLatch,
    terminate: OnceLatch,
    stealer: Stealer<JobRef>,
}Fields§
§primed: LockLatchLatch 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: LockLatchLatch is set once worker thread has completed. Used to wait until workers have stopped; only used for tests.
terminate: OnceLatchThe 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