Pārlūkot izejas kodu

Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread().

Philipp Wiesemann 9 gadi atpakaļ
vecāks
revīzija
98986f39e9
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0 3
      src/thread/pthread/SDL_systhread.c

+ 0 - 3
src/thread/pthread/SDL_systhread.c

@@ -87,7 +87,6 @@ int
 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 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
             pthread_attr_setstacksize(&type, stacksize);
         }
     }
-    
-    pthread_attr_getstacksize(&type, &ss);
 
     /* Create the thread and go! */
     if (pthread_create(&thread->handle, &type, RunThread, args) != 0) {