src/thread/pthread/SDL_systhread.c
changeset 8833 ae720d61d14d
parent 8149 681eb46b8ac4
child 8879 f6e4f24df1ac
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Thu Jun 05 15:37:33 2014 -0700
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Fri Jun 06 15:45:59 2014 -0300
     1.3 @@ -141,12 +141,15 @@
     1.4          #endif
     1.5      }
     1.6  
     1.7 +   /* NativeClient does not yet support signals.*/
     1.8 +#ifndef __NACL__
     1.9      /* Mask asynchronous signals for this thread */
    1.10      sigemptyset(&mask);
    1.11      for (i = 0; sig_list[i]; ++i) {
    1.12          sigaddset(&mask, sig_list[i]);
    1.13      }
    1.14      pthread_sigmask(SIG_BLOCK, &mask, 0);
    1.15 +#endif
    1.16  
    1.17  #ifdef PTHREAD_CANCEL_ASYNCHRONOUS
    1.18      /* Allow ourselves to be asynchronously cancelled */
    1.19 @@ -166,7 +169,10 @@
    1.20  int
    1.21  SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
    1.22  {
    1.23 -#ifdef __LINUX__
    1.24 +#if __NACL__ 
    1.25 +    /* FIXME: Setting thread priority does not seem to be supported in NACL */
    1.26 +    return 0;
    1.27 +#elif __LINUX__
    1.28      int value;
    1.29  
    1.30      if (priority == SDL_THREAD_PRIORITY_LOW) {