pub struct ParkGuard<'a> { /* private fields */ }Available on crate feature
unstable only.Expand description
Keeps a core parked. The core runs again when the last guard for the core drops.
CpuControl::park_core returns this guard.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl ParkGuard<'_>
impl ParkGuard<'_>
Sourcepub fn keep_parked(self)
pub fn keep_parked(self)
Drops the guard without unparking the core.
CpuControl::start_app_core can start a parked APP core again. No function can start a
parked PRO core again.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.