VMS Help  —  POSIX Threads, PTHREAD routines, pthread_attr_getstacksize
    Obtains the stacksize attribute of the specified thread
    attributes object.

1  –  C Binding

    #include <pthread.h>

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

2  –  Arguments

 attr

    Thread attributes object whose stacksize attribute is obtained.

 stacksize

    Receives the value for the stacksize attribute of the thread
    attributes object specified by the attr argument.

3  –  Description

    This routine obtains the stacksize attribute of the thread
    attributes object specified in the attr argument.

4  –  Return Values

    On successful completion, this routine returns a zero (0) and
    the stacksize value in bytes in the location specified in the
    stacksize argument.

    If an error condition occurs, this routine returns an integer
    value indicating the type of error. Possible return values are as
    follows:

    Return      Description

    0           Successful completion.
    [EINVAL]    The value specified by attr is not a valid stack
                attributes object.

5  –  Associated Routines

       pthread_attr_init()
       pthread_attr_setstacksize()
       pthread_create()
Close Help