thr_setspecific() returns 0 if successful. When any of the following conditions is detected, thr_setspecific() fails and returns the corresponding value.
ENOMEM
Description:Insufficient memory is available to associate value with keyp.
EINVAL
Description:keyp is invalid.