aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/nice.cpp
blob: cbab07f688f4dbff9f2ad28765e9558df77ce2b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "nice.h" 
 
#include "platform.h" 
 
#if defined(_unix_) 
    #include <unistd.h>
#endif 
 
bool Nice(int prioDelta) { 
#if defined(_unix_) 
    return nice(prioDelta) != -1; 
#else 
    return prioDelta == 0; 
#endif 
}