#include <oskit/threads/pthread.h>int pthread_attr_setstacksize(pthread_attr_t *attr, oskit_size_t stacksize);
Set the stack size in a previously initialized threads attribute object, for use with pthread_create.
- attr
- A pointer to the pthread_attr_t object representing the attributes for a thread creation.
- stacksize
- A reasonable stack size.
Returns zero on success. Returns EINVAL if stacksize is less than PTHREAD_STACK_MIN.
pthread_create, pthread_attr_init, pthread_attr_setprio