Lines Matching refs:priority
1402 int uv_os_getpriority(uv_pid_t pid, int* priority) { in uv_os_getpriority() argument
1406 if (priority == NULL) in uv_os_getpriority()
1421 *priority = UV_PRIORITY_HIGHEST; in uv_os_getpriority()
1423 *priority = UV_PRIORITY_HIGH; in uv_os_getpriority()
1425 *priority = UV_PRIORITY_ABOVE_NORMAL; in uv_os_getpriority()
1427 *priority = UV_PRIORITY_NORMAL; in uv_os_getpriority()
1429 *priority = UV_PRIORITY_BELOW_NORMAL; in uv_os_getpriority()
1431 *priority = UV_PRIORITY_LOW; in uv_os_getpriority()
1441 int uv_os_setpriority(uv_pid_t pid, int priority) { in uv_os_setpriority() argument
1447 if (priority < UV_PRIORITY_HIGHEST || priority > UV_PRIORITY_LOW) in uv_os_setpriority()
1449 else if (priority < UV_PRIORITY_HIGH) in uv_os_setpriority()
1451 else if (priority < UV_PRIORITY_ABOVE_NORMAL) in uv_os_setpriority()
1453 else if (priority < UV_PRIORITY_NORMAL) in uv_os_setpriority()
1455 else if (priority < UV_PRIORITY_BELOW_NORMAL) in uv_os_setpriority()
1457 else if (priority < UV_PRIORITY_LOW) in uv_os_setpriority()
1474 int uv_thread_getpriority(uv_thread_t tid, int* priority) { in uv_thread_getpriority() argument
1477 if (priority == NULL) in uv_thread_getpriority()
1484 *priority = r; in uv_thread_getpriority()
1488 int uv_thread_setpriority(uv_thread_t tid, int priority) { in uv_thread_setpriority() argument
1491 switch (priority) { in uv_thread_setpriority()