pthread_rwlockattr_destroy3
Destroy a read/write lock attributes object
Usage
#include <pthread.h>
int
pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);
Library
POSIX Threads Library (libpthread, -lpthread)
Overview
The pthread_rwlockattr_destroy() function is used to destroy a read/write lock attributes object previously created with pthread_rwlockattr_init().
Return values
If successful, the pthread_rwlockattr_destroy() function will return zero. Otherwise an error number will be returned to indicate the error.
Errors
The pthread_rwlockattr_destroy() function may fail if:
- [EINVAL]
-
The value specified by attr is invalid.
Releases
79 releases since FreeBSD 2.2.8-RELEASE; the text changed 45 times.