src/thread/pthread/SDL_systhread.c
changeset 8879 f6e4f24df1ac
parent 8833 ae720d61d14d
child 9619 b94b6d0bff0f
equal deleted inserted replaced
8878:f7ba2119fd91 8879:f6e4f24df1ac
    55 #include <be/kernel/OS.h>
    55 #include <be/kernel/OS.h>
    56 #endif
    56 #endif
    57 
    57 
    58 #include "SDL_assert.h"
    58 #include "SDL_assert.h"
    59 
    59 
       
    60 #ifndef __NACL__
    60 /* List of signals to mask in the subthreads */
    61 /* List of signals to mask in the subthreads */
    61 static const int sig_list[] = {
    62 static const int sig_list[] = {
    62     SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH,
    63     SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH,
    63     SIGVTALRM, SIGPROF, 0
    64     SIGVTALRM, SIGPROF, 0
    64 };
    65 };
       
    66 #endif
    65 
    67 
    66 static void *
    68 static void *
    67 RunThread(void *data)
    69 RunThread(void *data)
    68 {
    70 {
    69 #ifdef __ANDROID__
    71 #ifdef __ANDROID__
   113 }
   115 }
   114 
   116 
   115 void
   117 void
   116 SDL_SYS_SetupThread(const char *name)
   118 SDL_SYS_SetupThread(const char *name)
   117 {
   119 {
       
   120 #ifndef __NACL__
   118     int i;
   121     int i;
   119     sigset_t mask;
   122     sigset_t mask;
       
   123 #endif
   120 
   124 
   121     if (name != NULL) {
   125     if (name != NULL) {
   122         #if defined(__MACOSX__) || defined(__IPHONEOS__) || defined(__LINUX__)
   126         #if defined(__MACOSX__) || defined(__IPHONEOS__) || defined(__LINUX__)
   123         SDL_assert(checked_setname);
   127         SDL_assert(checked_setname);
   124         if (ppthread_setname_np != NULL) {
   128         if (ppthread_setname_np != NULL) {