Skip to content

Commit

Permalink
Removed not needed call to pthread_attr_getstacksize() for SDL_Create…
Browse files Browse the repository at this point in the history
…Thread().
  • Loading branch information
philippwiesemann committed Aug 15, 2015
1 parent 8145760 commit 98986f3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/thread/pthread/SDL_systhread.c
Expand Up @@ -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. */
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 98986f3

Please sign in to comment.