[Previous] [Contents] [Next]

pthread_attr_getstacklazy()

Get thread stack attribute

Synopsis:

#include <pthread.h>

int pthread_attr_getstacklazy(
                    const pthread_attr_t * attr,
                    int lazystack );

Library:

libc

Description:

The pthread_attr_getstacklazy() function gets the thread stack attribute in the attribute object attr to lazystack.

Possible values for lazystack are:

PTHREAD_STACK_LAZY
Allocate physical memory for the thread stack on demand (the default).
PTHREAD_STACK_NOTLAZY
Allocate physical memory for the whole stack up front.

Returns:

EOK
Success.
EINVAL
Invalid thread attribute object attr.
ENOTSUP
Invalid thread inherit scheduling attribute lazystack.

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_attr_setinheritsched(), pthread_attr_setstacklazy()


[Previous] [Contents] [Next]