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