rw_unlock

Unlocks the specified reader-writer lock.

Library:LibC
Classification:UNIX International
Service:Synchronization

Syntax

  #include <synch.h>
   
  int  rw_unlock  (
     rwlock_t   *rwlp );
  

Parameters

rwlp

(IN) Points to the reader-writer lock to unlock.

Return Values

Returns 0; no error conditions have been defined.

Remarks

No assumptions can be made about the order in which threads waiting for a reader/writer lock will acquire the lock. That is, the reader/writer lock is not guaranteed to be FIFO.

See Also