src/thread/pthread/SDL_systhread.c
changeset 5510 55519e27e5d1
parent 5509 5b1b4d820d10
child 5513 0a72c9c29099
equal deleted inserted replaced
5509:5b1b4d820d10 5510:55519e27e5d1
   109         value = -20;
   109         value = -20;
   110     } else {
   110     } else {
   111         value = 0;
   111         value = 0;
   112     }
   112     }
   113     if (setpriority(PRIO_PROCESS, syscall(SYS_gettid), value) < 0) {
   113     if (setpriority(PRIO_PROCESS, syscall(SYS_gettid), value) < 0) {
       
   114         /* Note that this fails if you're trying to set high priority
       
   115            and you don't have root permission. BUT DON'T RUN AS ROOT!
       
   116          */
   114         SDL_SetError("setpriority() failed");
   117         SDL_SetError("setpriority() failed");
   115         return -1;
   118         return -1;
   116     }
   119     }
   117     return 0;
   120     return 0;
   118 #else
   121 #else