Trait RequestYield

Source
pub trait RequestYield: Send + Sync {
    // Required method
    fn request_yield(&self, vp_index: VpIndex);
}
Expand description

Trait for requesting that a VP yield in its virt::Processor::run_vp call.

Required Methods§

Source

fn request_yield(&self, vp_index: VpIndex)

Forces the run_vp call to yield to the scheduler (i.e. return Poll::Pending).

Implementors§