[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


cma_attr_get_guardsize

Obtains the guardsize attribute of thread creation.

Syntax

cma_attr_get_guardsize(
                        attr,
                        guardsize);
 


Argument Data Type Access

attr opaque cma_t_attr read guardsize opaque cma_t_natural write


C Binding

#include 

void cma_attr_get_guardsize ( cma_t_attr *attr, cma_t_natural *guardsize);

Arguments

attr
Handle of the attributes object whose guardsize attribute is obtained.
guardsize
Value of the guardsize attribute. The guardsize argument specifies the minimum size (in bytes) of the guard area for the stack of a thread.

Description

This routine obtains the minimum size (in bytes) of the guard area for the stack of a thread that is created using the attributes object specified by the attr argument.

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.

Exceptions

cma_e_existence
cma_e_use_error



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]