pub(crate) struct PendingCommandExecutionQueue<S>where
S: ExecutionCommandSource,{
queued: VecDeque<PendingCommandExecution<S>>,
blocked_sources: FxHashMap<CommandSenderKey, usize>,
global_barriers: usize,
}Expand description
Suspended command executions owned by the server tick.
Fields§
§queued: VecDeque<PendingCommandExecution<S>>§blocked_sources: FxHashMap<CommandSenderKey, usize>§global_barriers: usizeImplementations§
Source§impl<S> PendingCommandExecutionQueue<S>where
S: ExecutionCommandSource,
impl<S> PendingCommandExecutionQueue<S>where
S: ExecutionCommandSource,
pub(crate) fn new() -> Self
Sourcepub(crate) fn push_suspended(
&mut self,
owner: CommandExecutionOwner,
execution: CommandExecutionContext<S>,
) -> bool
pub(crate) fn push_suspended( &mut self, owner: CommandExecutionOwner, execution: CommandExecutionContext<S>, ) -> bool
Retains an execution only when it is waiting on suspended work.
Sourcepub(crate) fn blocks(&self, source: CommandSenderKey) -> bool
pub(crate) fn blocks(&self, source: CommandSenderKey) -> bool
Returns whether a later top-level command from source must wait.
Sourcepub(crate) fn tick(
&mut self,
limit: usize,
owner_is_current: impl FnMut(&CommandExecutionOwner) -> bool,
) -> PendingCommandExecutionStats
pub(crate) fn tick( &mut self, limit: usize, owner_is_current: impl FnMut(&CommandExecutionOwner) -> bool, ) -> PendingCommandExecutionStats
Polls each execution selected for this tick at most once, preserving FIFO order.
pub(crate) fn cancel_all(&mut self)
fn retain_barrier( &mut self, source: CommandSenderKey, order: CommandSuspensionOrder, )
fn release_barrier( &mut self, source: CommandSenderKey, order: CommandSuspensionOrder, )
Trait Implementations§
Source§impl<S> Default for PendingCommandExecutionQueue<S>where
S: ExecutionCommandSource,
impl<S> Default for PendingCommandExecutionQueue<S>where
S: ExecutionCommandSource,
Auto Trait Implementations§
impl<S> !RefUnwindSafe for PendingCommandExecutionQueue<S>
impl<S> !Sync for PendingCommandExecutionQueue<S>
impl<S> !UnwindSafe for PendingCommandExecutionQueue<S>
impl<S> Freeze for PendingCommandExecutionQueue<S>
impl<S> Send for PendingCommandExecutionQueue<S>
impl<S> Unpin for PendingCommandExecutionQueue<S>
impl<S> UnsafeUnpin for PendingCommandExecutionQueue<S>
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> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>