src/thread/pthread/SDL_systhread.c
changeset 5513 0a72c9c29099
parent 5510 55519e27e5d1
child 5535 96594ac5fd1a
equal deleted inserted replaced
5512:56ab281d7d3e 5513:0a72c9c29099
    21 */
    21 */
    22 #include "SDL_config.h"
    22 #include "SDL_config.h"
    23 
    23 
    24 #include <pthread.h>
    24 #include <pthread.h>
    25 #include <signal.h>
    25 #include <signal.h>
    26 #ifdef linux
    26 #ifdef __LINUX__
    27 #include <sys/time.h>
    27 #include <sys/time.h>
    28 #include <sys/resource.h>
    28 #include <sys/resource.h>
    29 #include <sys/syscall.h>
    29 #include <sys/syscall.h>
    30 #endif
    30 #endif
    31 
    31 
    98 }
    98 }
    99 
    99 
   100 int
   100 int
   101 SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
   101 SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
   102 {
   102 {
   103 #ifdef linux
   103 #ifdef __LINUX__
   104     int value;
   104     int value;
   105 
   105 
   106     if (priority == SDL_THREAD_PRIORITY_LOW) {
   106     if (priority == SDL_THREAD_PRIORITY_LOW) {
   107         value = 19;
   107         value = 19;
   108     } else if (priority == SDL_THREAD_PRIORITY_HIGH) {
   108     } else if (priority == SDL_THREAD_PRIORITY_HIGH) {