Return Values
pthread_key_delete() returns zero after completing
successfully. Any other return value indicates that an error occurred. When
the following condition occurs, pthread_key_create() fails
and returns the corresponding value.
-
EINVAL
-
The key
value is invalid.