Function lrs::thread::set_scheduler

Set a thread's scheduler and its arguments.

Syntax

fn set_scheduler(thread: i32, attributes: SchedAttr) -> Result<(), Errno>

Arguments

NameDescription
thread

The thread whose scheduler to set, or 0 for this thread.

attributes

The scheduler and attributes to set.

Remarks

Kernel version

The required kernel version is 3.14.

See also