SYNOPSIS
#include <pthread.h>
int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize);
DESCRIPTION
The
PARAMETERS
- attr
-
Is a thread attribute object.
- stacksize
-
Is the address of location used to store the current stack size attribute.
RETURN VALUES
On success,
- EFAULT
-
attr or stacksize is an invalid pointer.
- EINVAL
-
attr does not refer to a valid thread attribute object, or stacksize is not writable.
CONFORMANCE
POSIX P1003.1 (1996)
MULTITHREAD SAFETY LEVEL
MT-safe.
PORTING ISSUES
On Windows, a thread stack size of 0 indicates that the thread's stack size is inherited from the creating thread. This is the default value.
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.