Destroy a read-write lock attribute object
#include <pthread.h>
int pthread_rwlockattr_destroy(
pthread_rwlockattr_t* attr );
libc
The pthread_rwlockattr_destroy() function destroys a read-write lock attribute object created by pthread_rwlockattr_init(). Don't use a destroyed read-write lock attribute object unless it's been reinitialized with pthread_rwlockattr_init().
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_rwlockattr_getpshared(), pthread_rwlockattr_init(), pthread_rwlockattr_setpshared()