|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    int Ns_ReadLockRWLock(
    Ns_RWLock *lock
    );
Ns_ReadLockRWLock acquires a read lock. Any number of read locks can be pending. If there's a write lock active, the read lock acquisition blocks until the write lock is released.
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_RWLockRdLock is the preferred function for acquiring a read lock.