Crate scheduler [] [src]

Bindings to sched.h and sys/resource.h

Just enough to set the scheduler priority.

Structs

CpuSet

Struct representing a bitmask to be used with the affinity functions. Meant to represent the CPU_* macros from sched.h

Enums

Policy

Policies that may be set

Which

Which identifier type to use (pid, gid, or uid)

Functions

get_affinity

Get the cpu affinity for a thread.

get_policy

Get the scheduling policy for a process

get_priority

Get the scheduling priority for the selected identifier (pid, gid, or uid)

get_self_affinity

Get the cpu affinity for the current thread. See get_affinity.

get_self_policy

Get the scheduling policy for this process

get_self_priority

Get the scheduling priority for the Which of the calling process

set_affinity

Set the cpu affinity for a thread.

set_policy

Set the scheduling policy for a process

set_priority

Set the scheduling priority for the selected identifier (pid, gid, or uid)

set_self_affinity

Set the cpu affinity for the current thread See set_affinity.

set_self_policy

Set the scheduling policy for this process

set_self_priority

Set the scheduling priority for the Which of the calling process