NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RESTRICTIONS | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libpthreads.a #include <pthread.h>int pthread_attr_getstackaddr(const pthread_attr_t * attr, void ** stackaddr);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The stackaddr attribute specifies the location in memory to be used for the newly created thread's stack. If no stackaddr value is provided explicitly, the stack for the new thread will be allocated dynamically by the system. The pthread_attr_getstackaddr() and pthread_attr_setstackaddr() functions respectively set and get the value of the stackaddr attribute in the attr object.
The pthread_attr_getstackaddr() and pthread_attr_getstackaddr() functions are available only in user mode. In supervisor actors the stackaddr attribute is not defined, and the stack for a new thread is always provided by the system.
On successful completion, all calls listed above return zero. Otherwise, an error code is returned.
These calls do not set errno .
pthread_attr_getstackaddr() and pthread_attr_setstackaddr() are not supported for supervisor mode actors.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RESTRICTIONS | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO