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

This commit is contained in:
Philipp Wiesemann 2015-08-15 21:21:29 +02:00
parent 8145760314
commit 98986f39e9
1 changed files with 0 additions and 3 deletions

View File

@ -87,7 +87,6 @@ int
SDL_SYS_CreateThread(SDL_Thread * thread, void *args) SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
{ {
pthread_attr_t type; pthread_attr_t type;
size_t ss;
const char *hint = SDL_GetHint(SDL_HINT_THREAD_STACK_SIZE); const char *hint = SDL_GetHint(SDL_HINT_THREAD_STACK_SIZE);
/* do this here before any threads exist, so there's no race condition. */ /* do this here before any threads exist, so there's no race condition. */
@ -117,8 +116,6 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
} }
} }
pthread_attr_getstacksize(&type, &ss);
/* Create the thread and go! */ /* Create the thread and go! */
if (pthread_create(&thread->handle, &type, RunThread, args) != 0) { if (pthread_create(&thread->handle, &type, RunThread, args) != 0) {
return SDL_SetError("Not enough resources to create thread"); return SDL_SetError("Not enough resources to create thread");