Suspends the scheduler of the current core until the guard drops.
The current core defers its context switches while a guard is alive. The current thread thus
keeps the current core, and cannot move to the other core. Interrupt handlers and
IPC requests still run. The deferred context switch runs
when the last guard drops.
The scheduler of the other core continues to run. Do not keep a guard for a long time,
because other threads cannot run on the current core.
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.
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.