Added a hint to specify new thread stack size (thanks, Gabriel!).

Fixes Bugzilla #2019.

(we'll do a better fix when we break the API in SDL 2.1.)
This commit is contained in:
Ryan C. Gordon
2015-05-26 21:13:27 -04:00
parent bcdc63a38b
commit a8fa7bd1f7
4 changed files with 32 additions and 0 deletions

View File

@@ -87,6 +87,8 @@ main(int argc, char *argv[])
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
return (1);
}
SDL_SetHintWithPriority(SDL_HINT_THREAD_STACK_SIZE, SDL_getenv(SDL_HINT_THREAD_STACK_SIZE), SDL_HINT_OVERRIDE);
signal(SIGSEGV, SIG_DFL);
for (i = 0; i < NUMTHREADS; i++) {