mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-08 07:32:32 +00:00
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:
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user