mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 17:25:31 +02:00
merge
This commit is contained in:
commit
9ace4da571
10 changed files with 83 additions and 16 deletions
|
|
@ -558,8 +558,10 @@ xtPublic int xt_p_set_low_priority(pthread_t thr)
|
|||
*/
|
||||
|
||||
/* -20 = highest, 20 = lowest */
|
||||
#ifdef SET_GLOBAL_PRIORITY
|
||||
if (setpriority(PRIO_PROCESS, getpid(), 20) == -1)
|
||||
return errno;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
return pth_set_priority(thr, pth_min_priority);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue