[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,
                          stacksize );
 


Argument Data Type Access

attr opaque pthread_attr_t read stacksize size_t write


C Binding

#include 

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

Arguments

attr
Thread attributes object whose stacksize attribute is obtained.
stacksize
Receives the value for the stacksize attribute.

Description

This routine obtains the stacksize attribute of the thread attributes object specified in attr.

Return Values

On successful completion, this routine returns a zero (0) and the stacksize value in the stacksize variable.

If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:


Return        Description

0 Successful completion. EINVAL The value specified by attr is invalid.


Associated Routines

   pthread_attr_init
   pthread_attr_setstacksize
   pthread_create



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