VMS Help
POSIX Threads, PTHREAD routines, pthread_attr_getstackaddr
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Obtains the stack address attribute of the specified thread
attributes object.
#include <pthread.h>
int
pthread_attr_getstackaddr (
const pthread_attr_t *attr,
void **stackaddr);
attr
Address of the thread attributes object whose stack address
attribute is obtained.
stackaddr
Receives the value of the stack address attribute of the thread
attributes object specified by attr.
This routine obtains the value of the stack address attribute of
the thread attributes object specified in the attr argument and
stores it in the location specified by the stackaddr argument.
The specified attributes object must already be initialized when
this routine is called.
The stack address attribute of a thread attributes object points
to the origin of the stack for a new thread.
Note that the value of the stack address attribute of a
particular thread attributes object does not necessarily
correspond to the actual stack origin of any existing thread
in your multithreaded program.
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 not a valid thread
attributes object.
pthread_attr_getguardsize()
pthread_attr_getstacksize()
pthread_attr_init()
pthread_attr_setguardsize()
pthread_attr_setstackaddr()
pthread_attr_setstacksize()
pthread_create()
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.