THREAD_STACK_SIZE


Description:

[ Version ( since = "2.0.4" ) ]
[ CCode ( cname = "SDL_HINT_THREAD_STACK_SIZE" ) ]
public const string THREAD_STACK_SIZE

A hint that specifies a variable specifying SDL's threads stack size in bytes or "0" 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 8 MB glibc uses).

Support for this hint is currently available only in the pthread backend.

The variable can be set to the following values:

  • "0" - SDL will use the backend's default threads stack size
  • "X" - SDL will use the provided the X positive you provided as the threads stack size

By default the backend's default threads stack size is used.


Namespace: SDL.Hint
Package: sdl2