src/thread/irix/SDL_systhread.c
changeset 3578 0d1b16ee0bca
parent 2859 99210400e8b9
child 3697 f7b03b6838cb
equal deleted inserted replaced
3577:72024425b437 3578:0d1b16ee0bca
    62         sigaddset(&mask, sig_list[i]);
    62         sigaddset(&mask, sig_list[i]);
    63     }
    63     }
    64     sigprocmask(SIG_BLOCK, &mask, NULL);
    64     sigprocmask(SIG_BLOCK, &mask, NULL);
    65 }
    65 }
    66 
    66 
    67 /* WARNING:  This may not work for systems with 64-bit pid_t */
    67 SDL_threadID
    68 Uint32
       
    69 SDL_ThreadID(void)
    68 SDL_ThreadID(void)
    70 {
    69 {
    71     return ((Uint32) getpid());
    70     return ((SDL_threadID) getpid());
    72 }
    71 }
    73 
    72 
    74 /* WARNING:  This may not work for systems with 64-bit pid_t */
       
    75 void
    73 void
    76 SDL_WaitThread(SDL_Thread * thread, int *status)
    74 SDL_WaitThread(SDL_Thread * thread, int *status)
    77 {
    75 {
    78     errno = 0;
    76     errno = 0;
    79     while (errno != ECHILD) {
    77     while (errno != ECHILD) {