mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
fix
This commit is contained in:
parent
ca381b07e9
commit
0ce786cd78
1 changed files with 1 additions and 2 deletions
|
@ -3032,13 +3032,12 @@ void thread_ctrl::set_native_priority(int priority)
|
|||
}
|
||||
#elif defined(__linux__)
|
||||
// available niceness for root: -20~19
|
||||
int linuxprio = 0;
|
||||
id_t threadpid = gettid();
|
||||
uid_t euid = geteuid();
|
||||
|
||||
if (euid == 0)
|
||||
{
|
||||
linuxprio = 0;
|
||||
int linuxprio = 0;
|
||||
if (priority > 0)
|
||||
linuxprio = -6;
|
||||
else if (priority < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue