Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 15 Aug 2015 21:21:29 +0200
changeset 9846 9f0a0c7de41a
parent 9845 41ce18cb4b3b
child 9847 adc0f20968ae
Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread().
src/thread/pthread/SDL_systhread.c
--- a/src/thread/pthread/SDL_systhread.c	Sat Aug 15 00:36:39 2015 -0400
+++ b/src/thread/pthread/SDL_systhread.c	Sat Aug 15 21:21:29 2015 +0200
@@ -87,7 +87,6 @@
 SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
 {
     pthread_attr_t type;
-    size_t ss;
     const char *hint = SDL_GetHint(SDL_HINT_THREAD_STACK_SIZE);
 
     /* do this here before any threads exist, so there's no race condition. */
@@ -116,8 +115,6 @@
             pthread_attr_setstacksize(&type, stacksize);
         }
     }
-    
-    pthread_attr_getstacksize(&type, &ss);
 
     /* Create the thread and go! */
     if (pthread_create(&thread->handle, &type, RunThread, args) != 0) {