set_policy
concur.Thread.set_policy
set_policy(policy concur.scheduling_policy.val,reset_on_fork bool,priority i32) => outcome unit¶[src]
Precondition
pre safety: 0 ≤ priority ≤ 99
Arguments
0.099dev (GIT hash 2afc453e6b9c6947b5a90cc7657cba97cfdd0320)
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.