diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2015-05-26 21:13:27 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2015-05-26 21:13:27 -0400 |
commit | df36e5f52a2bd71e25848b5a3b5fb08354ec6103 (patch) | |
tree | 6dad433551fd34ff878d2c794b1391d7dccd2570 /test/torturethread.c | |
parent | 06decefceb4c0972cf7cab49f7d49113da591007 (diff) | |
download | sdl-df36e5f52a2bd71e25848b5a3b5fb08354ec6103.tar.gz |
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.)
Diffstat (limited to 'test/torturethread.c')
-rw-r--r-- | test/torturethread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/torturethread.c b/test/torturethread.c index efbab5e32..116ec09a2 100644 --- a/test/torturethread.c +++ b/test/torturethread.c @@ -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++) { |