#include <pthread.h> int pthread_attr_setstacksize( pthread_attr_t *attr, size_t stacksize );
The pthread_attr_setstacksize
routine is used to set the
stacksize
attribute in the attr
thread attribute
object.
As required by POSIX, RTEMS defines the feature symbol
_POSIX_THREAD_ATTR_STACKSIZE
to indicate that this
routine is supported.
If the specified stacksize is below the minimum required for this CPU
(PTHREAD_STACK_MIN
, then the stacksize will be set to the minimum
for this CPU.
Copyright © 1988-2004 OAR Corporation