pub struct Share<TTask> {
pub Injector: (Injector<TTask>, Injector<TTask>, Injector<TTask>),
pub Stealer: (Vec<Stealer<TTask>>, Vec<Stealer<TTask>>, Vec<Stealer<TTask>>),
}Expand description
Holds the queue components that are safe to share across all threads.
This includes global injectors for submitting new tasks from any context and stealers for taking tasks from other workers’ deques, organized by priority level.
Fields§
§Injector: (Injector<TTask>, Injector<TTask>, Injector<TTask>)Global, multi-producer queues for each priority level.
Stealer: (Vec<Stealer<TTask>>, Vec<Stealer<TTask>>, Vec<Stealer<TTask>>)Shared handles for stealing tasks from each worker’s local queue.
Auto Trait Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more