Multithreaded Programming Guide

thr_create Return Values

thr_create() returns zero when the function completes successfully. Any other return value indicates that an error occurred. When any of the following conditions is detected, thr_create() fails and returns the corresponding value.


EAGAIN

Description:

A system limit is exceeded, such as when too many LWPs have been created.


ENOMEM

Description:

Insufficient memory was available to create the new thread.


EINVAL

Description:

stack_base is not NULL and stack_size is less than the value returned by thr_min_stack.()