NXMutexTestFlag

Determines whether the mutex is a recursive mutex.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  NXBool_t  NXMutexTestFlag (
     NXMutex_t      *mutex
     unsigned long   flag);
  

Parameters

mutex

(IN) Points to the mutex to check.

flag

(OUT) Specifies the mutex type: either 0 for a nonrecursive mutex, or NX_MUTEX_RECURSIVE for a recursive mutex.

Return Values

TRUE

The mutex is nonrecursive.

FALSE

The mutex is recursive.

Remarks

The NXMutexTestFlag function is for debug purposes only; you should not depend upon it for runtime operations or conditions. In production code, NDEBUG should be defined.

See Also