|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    int Ns_DestroyRWLock(
    Ns_RWLock *lock
    );
Ns_DestroyRWLock frees the read/write lock's associated resources.
For general information about read/write locks and an example showing the use of the read/write lock functions, see the Ns_InitializeRWLock function.
Ns_RWLockDestroy is the preferred function for destroying a read/write lock.