NXRwLockDeinit

Deinitializes the specified reader-writer lock.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  void NXRwLockDeinit (
     NXRwLock_t  *lock));
  

Parameters

lock

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

Remarks

NXRwLockDeinit does not release the memory for the reader-writer lock, but does release the memory allocated by the NXRwLockInit function. The reader-writer lock being deinitialized must have been initialized by calling NXRwLockInit.

To free the memory for the reader-writer lock, call the function that corresponds to the function you used to allocate memory for the lock. For example, if you used malloc the for lock, use free to release the memory.

See Also

NXRwLockInit