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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Stealing
: 24 bytesBlocking
: 20 bytes