pthread_attr_getstacksize()

get thread stack size attribute 

Function


SYNOPSIS

#include <pthread.h>

int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize);


DESCRIPTION

The pthread_attr_getstacksize() function gets the thread stack size attribute from the thread attribute object.


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, pthread_attr_getstacksize() returns 0. On error, one of the following values is returned:

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

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_attr_init(), pthread_attr_setstacksize(), pthread_create()


PTC MKS Toolkit 10.4 Documentation Build 39.