posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
_POSIX_THREAD_ATTR_STACKSIZE

POSIX Thread Stack Size Attribute option. More...

Functions

int pthread_attr_getstacksize (const pthread_attr_t *ZRESTRICT attr, size_t *ZRESTRICT stacksize)
 Get the stack size attribute of a thread attributes object.
 
int pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize)
 Set the stack size attribute of a thread attributes object.
 

Detailed Description

POSIX Thread Stack Size Attribute option.

Function Documentation

◆ pthread_attr_getstacksize()

int pthread_attr_getstacksize ( const pthread_attr_t *ZRESTRICT  attr,
size_t *ZRESTRICT  stacksize 
)

Get the stack size attribute of a thread attributes object.

Parameters
attrThread attributes object.
stacksizeOutput: stack size in bytes.
Returns
0 on success, or a positive error number on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_getstacksize.html

◆ pthread_attr_setstacksize()

int pthread_attr_setstacksize ( pthread_attr_t attr,
size_t  stacksize 
)

Set the stack size attribute of a thread attributes object.

Parameters
attrThread attributes object.
stacksizeStack size in bytes (>= PTHREAD_STACK_MIN).
Returns
0 on success, or a positive error number on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_setstacksize.html