pub(crate) struct Runner<'a> {
pub(crate) state: &'a State,
pub(crate) ticker: Ticker<'a>,
pub(crate) local: Arc<ConcurrentQueue<Runnable>>,
pub(crate) ticks: usize,
}Expand description
A worker in a work-stealing executor.
This is just a ticker that also has an associated local queue for improved cache locality.
Fields§
§state: &'a StateThe executor state.
ticker: Ticker<'a>Inner ticker.
local: Arc<ConcurrentQueue<Runnable>>The local queue.
ticks: usizeBumped every time a runnable task is found.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Runner<'a>
impl<'a> RefUnwindSafe for Runner<'a>
impl<'a> Send for Runner<'a>
impl<'a> Sync for Runner<'a>
impl<'a> Unpin for Runner<'a>
impl<'a> UnwindSafe for Runner<'a>
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