Enum rayon_core::latch::CountLatchKind
source · enum CountLatchKind {
Stealing {
latch: CoreLatch,
registry: Arc<Registry>,
worker_index: usize,
},
Blocking {
latch: LockLatch,
},
}
Variants§
Stealing
A latch for scopes created on a rayon thread which will participate in work- stealing while it waits for completion. This thread is not necessarily part of the same registry as the scope itself!
Fields
§
registry: Arc<Registry>
If a worker thread in registry A calls in_place_scope
on a ThreadPool
with registry B, when a job completes in a thread of registry B, we may
need to call notify_worker_latch_is_set()
to wake the thread in registry A.
That means we need a reference to registry A (since at that point we will
only have a reference to registry B), so we stash it here.
Blocking
A latch for scopes created on a non-rayon thread which will block to wait.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CountLatchKind
impl !RefUnwindSafe for CountLatchKind
impl Send for CountLatchKind
impl Sync for CountLatchKind
impl Unpin for CountLatchKind
impl !UnwindSafe for CountLatchKind
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