nice.cpp 217 B

123456789101112131415
  1. #include "nice.h"
  2. #include "platform.h"
  3. #if defined(_unix_)
  4. #include <unistd.h>
  5. #endif
  6. bool Nice(int prioDelta) {
  7. #if defined(_unix_)
  8. return nice(prioDelta) != -1;
  9. #else
  10. return prioDelta == 0;
  11. #endif
  12. }