pthread_default_rsestacksize_np() — change the default stacksize.
The new default register stack size.
Pointer to where the old default register stack size is returned.
function allows an application to change the default value for the
This function must be called before any threads have been created.
The new default stack size is passed in the
the previous default stack size is returned in
is zero, this function can be used (at any time) to query the current
default stack size.
On HP-UX, threads with default stack sizes are cached after they terminate.
The next time a thread is created with a default stack size, a cached
thread (and its stack) are reused.
This can result in significant performance improvements for
However, if the default register stack size is not appropriate for an
application, it cannot take advantage of this performance enhancement.
By using the
function, the threads library will change
the default stack size so that it matches the applications needs.
This allows the application to utilize the performance benefit of
If either of the set register stack size APIs is called
the register stack portion of the stack space will be that large instead
of size determined by the implementation.
The memory stack portion will be the remainder.
Upon successful completion,
returns zero. Otherwise, an error number is returned to indicate the error
variable is not set).
If any of the following occur, the
function returns the corresponding error number:
The value specified by
is less than
register stack required for a thread.
The calling process has already created threads (this must be called
before any threads are created).
was developed by HP.