SYNOPSIS
#include <pthread.h>
int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);
DESCRIPTION
The
PARAMETERS
RETURN VALUES
On success,
- EINVAL
-
attr is not an initialized thread attribute object, or stacksize does not specify a valid stack size setting.
- EFAULT
-
attr is an invalid pointer.
CONFORMANCE
POSIX P1003.1 (1996)
MULTITHREAD SAFETY LEVEL
MT-safe.
PORTING ISSUES
On Windows, setting the thread stack size to 0 causes the thread's stack size to be inherited from the parent thread. This is the default setting.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
MKS Toolkit 9.2 Documentation Build 16.