Obtains the guardsize attribute of the specified thread attributes object.
pthread_attr_getguardsize_np( attr, guardsize );
Argument Data Type Accessattr opaque pthread_attr_t read guardsize size_t write
C Binding
#includeint pthread_attr_getguardsize_np ( const pthread_attr_t *attr size_t *guardsize);
Arguments
A guard area helps to detect stack overflows by preventing memory access beyond the thread's stack. Large guard areas are necessary when threads might allocate large structures on the stack.
Return Description0 Successful completion. [EINVAL] The value specified by attr is invalid.
pthread_attr_init pthread_attr_setstacksize pthread_attr_setguardsize_np thread_create