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.