Return Values
Returns a zero and exits when it completes successfully. Any other returned
value indicates that an error occurred. When any of the following conditions
are detected, thr_create() fails and returns the corresponding
value.
-
EAGAIN
-
A system limit is exceeded, such as when too many LWPs have been created.
-
ENOMEM
-
Not enough memory was available to create the new thread.
-
EINVAL
-
stack_base is not NULL
and stack_size is less than the value returned
by thr_min_stack.()