NXMutexDeinit

Deinitializes the specified mutex.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  void NXMutexDeinit (
     NXMutex_t  *mutex);
  

Parameters

mutex

(IN) Points to the mutex to be deinitialized.

Remarks

The mutex being deinitialized must have been initialized by calling NXMutexInit. NXMutexDeinit does not release the memory for the mutex, but it does release the memory allocated with the NXMutexInit function.

You must free the memory for the mutex with the function that is paired with the function you used to allocate the memory. For example, if you used malloc to allocate the mutex, use free to release the memory.

For sample code, see Mutex.c.

See Also

NXMutexInit