NXMutexIsOwned

Checks to see if the calling thread owns the specified mutex.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  NXBool_t  NXMutexIsOwned (
     NXMutex_t  *mutex);
  

Parameters

mutex

(IN) Points to the mutex to be checked.

Return Values

TRUE

The calling thread owns the specified lock in the specified mode.

FALSE

The calling thread does not own the specified lock in the specified mode.

NOTE:If the application is built without the DEBUG compilation option, NXMutexIsOwned always returns TRUE.

Remarks

NXMutexIsOwned is expected to be used for asserting locking constraints.

See Also