thr_minstack(3thread)


thr_minstack -- return the minimum stack size for a thread

Synopsis

   cc [options] -Kthread file 
   

#include <thread.h>

size_t thr_minstack(void);

Description

thr_minstack returns the implementation-defined value for the minimum stack size for a thread required by thr_create(3thread).

Usage

The value returned by thr_minstack can be used as the stack_size argument to thr_create when the new thread needs only a minimal stack. Threads that will call any functions, or that need much space for local variables, must use a larger stack.

Return values

thr_minstack returns the minimum stack size for a thread.

Errors

None

References

Intro(3thread), thr_create(3thread)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.