pthread_attr_setstackaddr

Specifies the location for the stack address in a thread attribute object.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

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

Parameters

attr

(IN) Points to the attribute object.

stackaddr

(IN) Points to the location for the stack address. When a user-allocated stack is used, the stack needs to be aligned on a 32-bit boundary.

Return Values

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

Decimal

Constant

Description

9

EINVAL

The attribute object is invalid.

See Also