Checks to see if the calling thread owns the specified reader-writer lock.
#include <nks/synch.h> NXBool_t NXRwLockIsOwned ( NXRwLock_t *lock, unsigned long mode);
(IN) Points to the reader-writer lock to check.
(IN) Specifies whether to check the reader-writer lock as a reader or a writer:
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. |
If the application is built without the DEBUG compilation option, NXRwLockIsOwned always returns TRUE.
On NetWare, NXRwLockIsOwned always returns TRUE.
NXRwLockIsOwned is expected to be used for asserting locking constraints.