![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Get the amount of memory to preallocate for a thread's MAP_LAZY stack
#include <pthread.h>
int pthread_attr_getstackprealloc(
        const pthread_attr_t * attr, 
        size_t *stacksize);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_attr_getstackprealloc() function gets the amount of memory to preallocate for a thread's MAP_LAZY stack.
![]()  | 
This function was added in the QNX Neutrino Core OS 6.3.2.  | 
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
pthread_attr_getstacksize(), pthread_attr_init(), pthread_attr_setstackprealloc(), pthread_create()
![]()  | 
![]()  | 
![]()  | 
![]()  |