ax-task 0.8.1

OS-independent IRQ-safe SMP task scheduling core
Documentation
//! Remote-work and atomic idle-polling facade.

use super::*;

impl CpuLocal {
    /// Reports pending remote work before idle or scheduler exit.
    pub(crate) fn has_remote_work(&self) -> bool {
        self.remote.has_remote_work()
    }

    /// Publishes the idle/polling state and performs the final WFI recheck.
    pub(crate) fn prepare_idle_wait(&self) -> bool {
        self.remote.prepare_idle_wait()
    }

    /// Returns whether this CPU is between idle publication and WFI completion.
    pub fn is_idle_polling(&self) -> bool {
        self.remote.is_idle_polling()
    }
}