[Commits] SDL: Don't call pthread_exit(), returning from RunThread() is eq...

libsdl.org revision control commits-owner at libsdl.org
Wed Sep 21 00:25:16 PDT 2011


details:   http://hg.libsdl.org/SDL/rev/fe5d2285dffa
changeset: 5963:fe5d2285dffa
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Tue Sep 20 17:48:29 2011 -0400
description:
Don't call pthread_exit(), returning from RunThread() is equivalent.

diffstat:

 src/thread/pthread/SDL_systhread.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 17cadf0c466e -r fe5d2285dffa src/thread/pthread/SDL_systhread.c
--- a/src/thread/pthread/SDL_systhread.c	Tue Sep 20 17:42:58 2011 -0400
+++ b/src/thread/pthread/SDL_systhread.c	Tue Sep 20 17:48:29 2011 -0400
@@ -43,8 +43,7 @@
 RunThread(void *data)
 {
     SDL_RunThread(data);
-    pthread_exit((void *) 0);
-    return ((void *) 0);        /* Prevent compiler warning */
+    return NULL;
 }
 
 int


More information about the commits mailing list