If successful, pthread_rwlockattr_destroy() returns zero. Otherwise, an error number is returned to indicate the error.
EINVAL
The value specified by attr is invalid.