RTEMS Logo

RTEMS 4.9.1 On-Line Library


Thread Manager pthread_attr_setstacksize - Set Thread Stack Size

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.5: pthread_attr_setstacksize - Set Thread Stack Size

CALLING SEQUENCE:

#include <pthread.h>

int pthread_attr_setstacksize(
  pthread_attr_t *attr,
  size_t          stacksize
);

STATUS CODES:

EINVAL
The attribute pointer argument is invalid.
EINVAL
The attribute set is not initialized.

DESCRIPTION:

The pthread_attr_setstacksize routine is used to set the stacksize attribute in the attr thread attribute object.

NOTES:

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.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation