Multithreaded Programming Guide

pthread_attr_setscope Return Values

pthread_attr_setscope() returns zero after completing successfully. Any other return value indicates that an error occurred. If the following conditions occur, the function fails and returns the corresponding value.



An attempt was made to set tattr to a value that is not valid.