Lines Matching defs:priority
1645 int uv_os_getpriority(uv_pid_t pid, int* priority) {
1649 if (priority == NULL)
1662 /* Map Windows priority classes to Unix nice values. */
1664 *priority = UV_PRIORITY_HIGHEST;
1666 *priority = UV_PRIORITY_HIGH;
1668 *priority = UV_PRIORITY_ABOVE_NORMAL;
1670 *priority = UV_PRIORITY_NORMAL;
1672 *priority = UV_PRIORITY_BELOW_NORMAL;
1674 *priority = UV_PRIORITY_LOW;
1684 int uv_os_setpriority(uv_pid_t pid, int priority) {
1689 /* Map Unix nice values to Windows priority classes. */
1690 if (priority < UV_PRIORITY_HIGHEST || priority > UV_PRIORITY_LOW)
1692 else if (priority < UV_PRIORITY_HIGH)
1694 else if (priority < UV_PRIORITY_ABOVE_NORMAL)
1696 else if (priority < UV_PRIORITY_NORMAL)
1698 else if (priority < UV_PRIORITY_BELOW_NORMAL)
1700 else if (priority < UV_PRIORITY_LOW)