pub trait ConcurrentPlan: Plan {
// Required methods
fn concurrent_work_in_progress(&self) -> bool;
fn current_pause(&self) -> Option<Pause>;
fn on_concurrent_work_interrupted(&self);
fn on_concurrent_work_drained(&self);
}Expand description
Trait for a concurrent plan.
Required Methods§
Sourcefn concurrent_work_in_progress(&self) -> bool
fn concurrent_work_in_progress(&self) -> bool
Return `true`` if concurrent work (such as concurrent marking) is in progress.
Sourcefn current_pause(&self) -> Option<Pause>
fn current_pause(&self) -> Option<Pause>
Return the current pause kind. None if not in a pause.
Sourcefn on_concurrent_work_interrupted(&self)
fn on_concurrent_work_interrupted(&self)
Called when concurrent work is interrupted.
Sourcefn on_concurrent_work_drained(&self)
fn on_concurrent_work_drained(&self)
Called when the concurrent phase’s work packets have drained: every GC worker has parked, so nothing is in progress, and no pause has been requested.