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:
parent
bcdc63a38b
commit
a8fa7bd1f7
4 changed files with 32 additions and 0 deletions
|
@ -348,6 +348,18 @@ extern "C" {
|
|||
#define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* \brief A string specifying SDL's threads stack size in bytes or "-1" for the backend's default size
|
||||
*
|
||||
* Use this hint in case you need to set SDL's threads stack size to other than the default.
|
||||
* This is specially useful if you build SDL against a non glibc libc library (such as musl) which
|
||||
* provides a relatively small default thread stack size (a few kilobytes versus the default 8MB glibc uses).
|
||||
* Support for this hint is currenly available only in the pthread backend.
|
||||
* As a precaution, this hint can not be set via an environment variable.
|
||||
*/
|
||||
#define SDL_HINT_THREAD_STACK_SIZE "SDL_THREAD_STACK_SIZE"
|
||||
|
||||
/**
|
||||
* \brief If set to 1, then do not allow high-DPI windows. ("Retina" on Mac and iOS)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue