pthread_attr_getstacksize

Returns the stack size specified in a thread attribute object.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
   
  int   pthread_attr_getstacksize (
     const pthread_attr_t   *attr,
     size_t                 *stacksize);
  

Parameters

attr

(IN) Points to the attribute object.

stacksize

(OUT) Points to the size of the stack.

Return Values

If successful, returns zero; otherwise returns a nonzero error code:

Decimal

Constant

Description

9

EINVAL

The attribute object is invalid.

Remarks

The pthread_attr_init function initializes the stack size to a default size specified at compile time.

See Also