pub struct CpuScheduling { /* private fields */ }
Expand description
The CPU scheduling for running a transient service on the system service
manager.
See CPUSchedulingPolicy=
, CPUSchedulingPriority=
, and
CPUSchedulingResetOnFork=
in systemd.exec(5)
and sched_setscheduler(2) for details.
Implementations§
Source§impl CpuScheduling
impl CpuScheduling
Sourcepub fn fifo(p: NonZeroU8) -> Self
pub fn fifo(p: NonZeroU8) -> Self
A first-in, first-out real-time policy, SCHED_FIFO
, with specified
priority. The priority must be in [1, 99].
This would be unavailable if the feature systemd_252
is disabled
because it was broken by
systemd #20320.
Use Self::fifo_default_priority instead.
Sourcepub fn fifo_default_priority() -> Self
pub fn fifo_default_priority() -> Self
Like Self::fifo but with default priority.
Sourcepub fn round_robin(p: NonZeroU8) -> Self
pub fn round_robin(p: NonZeroU8) -> Self
A round-robin real-time policy, SCHED_RR
, with specified priority.
The priority must be in [1, 99].
This would be unavailable if the feature systemd_252
is disabled
because it was broken by
systemd #20320.
Use Self::round_robin_default_priority instead.
Sourcepub fn round_robin_default_priority() -> Self
pub fn round_robin_default_priority() -> Self
Like Self::round_robin but with default priority.
Sourcepub fn reset_on_fork(self) -> Self
pub fn reset_on_fork(self) -> Self
Make the children created by fork(2) do not inherit privileged scheduling policies.