Index of Section 2 Manual Pages

Interix / SUApthread_attr_setstacksize.2Interix / SUA

pthread_attr_setstacksize(2)               pthread_attr_setstacksize(2)

  pthread_attr_getstacksize()

  NAME

    pthread_attr_getstacksize(), pthread_attr_setstacksize()- get or set the
    thread stack-size attribute

  SYNOPSIS

    #include 

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

  DESCRIPTION

    The pthread_attr_setstacksize(2) function sets the stack-size attribute in
    the thread attributes object referenced by attr using the value of the
    stacksize argument. The stacksize argument specifies the minimum size of
    the stack area in bytes.

    After the attributes have been set in the thread attributes object
    referenced by attr, the pthread_create(2) function can be called to create
    a new thread with the specified attributes. This function does not affect
    the current running thread.

    The pthread_attr_getstacksize(2) function retrieves the stack-size
    attribute in the thread attributes object referenced by attr, storing the
    value in the location specified by the stacksize argument.

  RETURN VALUES

    On success, both functions return 0; otherwise, they return an error
    number.

  ERRORS

    The pthread_attr_setstacksize() function can fail for the following
    reason:

    [EINVAL]
        The value of the stacksize argument is out of bounds.

    Neither function returns [EINTR].

  SEE ALSO

    pthread_attr_init(2)

    pthread_attr_getstack(2)

    pthread_attr_getstackaddr(2)

    pthread_create(2)

  USAGE NOTES

    All of these functions are thread safe.

    None of these functions are async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA