pthread_attr_getstackaddr

Returns the stack address in a thread attribute object.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
   
  int   pthread_attr_getstackaddr (
     const pthread_attr_t   *attr,
     void                  **stackaddr);
  

Parameters

attr

(IN) Points to the attribute object.

stackaddr

(OUT) Points to the location of the stack address.

Return Values

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

Decimal

Constant

Description

9

EINVAL

The attribute object is invalid.

See Also