set_policy
concur.thread.set_policy
(policy choice concur.scheduling_policy.sched_other concur.scheduling_policy.sched_fifo concur.scheduling_policy.sched_rr, reset_on_fork bool, priority i32)
=>
outcome unit¶Precondition
pre safety: 0 ≤ priority ≤ 99
0.095dev (GIT hash 174ff0d5a4465a8a0415fd934dc6963e69d62f22)
policy offers a choice between various options provided
by the operating system.
reset_on_fork specifies whether to inherit the scheduling
policy on a fork(2) (when it is not set) or not (when it
is set).
priority only applies to some scheduling policies and is
currently limited to a value between 0 and 99.