Checks to see if the calling thread owns the specified mutex.
#include <nks/synch.h>
NXBool_t NXMutexIsOwned (
NXMutex_t *mutex);
(IN) Points to the mutex to be checked.
|
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.
NXMutexIsOwned is expected to be used for asserting locking constraints.