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


cma_attr_set_guardsize

Changes the guardsize attribute of thread creation.

Syntax

cma_attr_set_guardsize(
                        attr, guardsize);
 


Argument Data Type Access

attr opaque cma_t_attr read guardsize opaque cma_t_natural read


C Binding

#include 

void cma_attr_set_guardsize ( cma_t_attr *attr, cma_t_natural guardsize);

Arguments

attr
Handle of the attributes object modified.
guardsize
New value for 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 sets 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 might be necessary when threads allocate large structures on the stack.

Exceptions

cma_e_badparam
cma_e_existence
cma_e_use_error



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