Multithreaded Programming Guide

Return Values

Returns zero after completing successfully. Any other returned value indicates that an error occurred. If either of the following conditions occurs, the function fails and returns the corresponding value.


ENOMEM

There is not enough memory to initialize the thread attributes object.


EINVAL

The value specified by mattr is invalid.