Destroys the specified reader-writer lock.
#include <pthread.h> int pthread_rwlock_destroy ( pthread_rwlock_t *rwlp);
(IN) Points to the reader-writer lock to destroy.
If successful, returns zero; otherwise, returns a nonzero error code:
The pthread_rwlock_destroy function destroys the reader-writer lock object and releases any resources used by the reader-writer lock, including the attribute object.