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 98469f0a0c7de41a
parent 9845 41ce18cb4b3b
child 9847 adc0f20968ae
Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread().
src/thread/pthread/SDL_systhread.c
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Sat Aug 15 00:36:39 2015 -0400
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Sat Aug 15 21:21:29 2015 +0200
     1.3 @@ -87,7 +87,6 @@
     1.4  SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
     1.5  {
     1.6      pthread_attr_t type;
     1.7 -    size_t ss;
     1.8      const char *hint = SDL_GetHint(SDL_HINT_THREAD_STACK_SIZE);
     1.9  
    1.10      /* do this here before any threads exist, so there's no race condition. */
    1.11 @@ -116,8 +115,6 @@
    1.12              pthread_attr_setstacksize(&type, stacksize);
    1.13          }
    1.14      }
    1.15 -    
    1.16 -    pthread_attr_getstacksize(&type, &ss);
    1.17  
    1.18      /* Create the thread and go! */
    1.19      if (pthread_create(&thread->handle, &type, RunThread, args) != 0) {