Updated: April 19, 2023 |
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.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |