[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


pthread_attr_getstacksize

Obtains the stacksize attribute of the specified thread attributes object.

Syntax

pthread_attr_getstacksize(
                          attr );
 


Argument Data Type Access

attr opaque pthread_attr_t read


C Binding

unsigned long
pthread_attr_getstacksize (
pthread_attr_t attr);

Arguments

attr
Thread attributes object whose stacksize attribute is obtained.

Description

This routine obtains the minimum size (in bytes) of the stack for a thread created using the thread attributes object specified by the attr argument.

Return Values

On successful completion, this routine returns the stacksize attribute value.

If an error condition occurs, this routine returns -1 and sets errno to the corresponding error value. Possible return values are as follows:


Return              Error         Description

Stacksize Successful completion. attribute -1 [EINVAL] The value specified by attr is invalid.



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]