Don't call pthread_exit(), returning from RunThread() is equivalent.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Sep 2011 17:48:29 -0400
changeset 5963fe5d2285dffa
parent 5962 17cadf0c466e
child 5964 1b5c5625a6ca
Don't call pthread_exit(), returning from RunThread() is equivalent.
src/thread/pthread/SDL_systhread.c
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Tue Sep 20 17:42:58 2011 -0400
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Tue Sep 20 17:48:29 2011 -0400
     1.3 @@ -43,8 +43,7 @@
     1.4  RunThread(void *data)
     1.5  {
     1.6      SDL_RunThread(data);
     1.7 -    pthread_exit((void *) 0);
     1.8 -    return ((void *) 0);        /* Prevent compiler warning */
     1.9 +    return NULL;
    1.10  }
    1.11  
    1.12  int