If an error condition occurs, the thread attributes object cannot be used, and this routine returns an integer value indicating the type of error. Possible return values are as follows: Return Description 0 Successful completion. [EINVAL] The value specified by attr is not a valid thread attributes object. [ENOMEM] Insufficient memory to initialize the thread attributes object.