Lines Matching defs:policy
6423 A tuple with the scheduler policy (optional) and parameters.
6469 A tuple with the scheduler policy (optional) and parameters.
6892 policy: int
6894 Get the maximum scheduling priority for policy.
6898 os_sched_get_priority_max_impl(PyObject *module, int policy)
6903 max = sched_get_priority_max(policy);
6913 policy: int
6915 Get the minimum scheduling priority for policy.
6919 os_sched_get_priority_min_impl(PyObject *module, int policy)
6922 int min = sched_get_priority_min(policy);
6936 Get the scheduling policy for the process identified by pid.
6938 Passing 0 for pid returns the scheduling policy for the calling process.
6945 int policy;
6947 policy = sched_getscheduler(pid);
6948 if (policy < 0)
6950 return PyLong_FromLong(policy);
7023 policy: int
7027 Set the scheduling policy for the process identified by pid.
7034 os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy,
7045 ** scheduling policy under Solaris/Illumos, and others.
7048 if (sched_setscheduler(pid, policy, ¶m) == -1)