next up previous contents index
Next: 18.3.7 pthread_attr_setguardsize: Set the Up: 18.3 POSIX Threads Reference Previous: 18.3.5 pthread_attr_setprio: Set the

18.3.6 pthread_attr_setstackaddr: Set the stack address in a thread attributes object

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_attr_setstackaddr(pthread_attr_t *attr, oskit_u32_t stackaddr);

DESCRIPTION

Set the stack address in a previously initialized threads attribute object, for use with pthread_create. The new thread will be created using the provided stack. It is necessary to call pthread_attr_setstacksize() if the size is not PTHREAD_STACK_MIN.

PARAMETERS

attr
A pointer to the pthread_attr_t object representing the attributes for a thread creation.
stackaddr
The address of the stack.

RETURNS

Returns zero on success.

RELATED INFORMATION

pthread_create, pthread_attr_init, pthread_attr_setstacksize



University of Utah Flux Research Group