IORecursiveLockHaveLock
Check if a recursive lock is held by the calling thread.
Declaration
bool IORecursiveLockHaveLock(struct IORecursiveLock *lock);boolean_t IORecursiveLockHaveLock(const IORecursiveLock *lock);Parameters
- lock:
Pointer to the allocated lock.
Return Value
True if the calling thread holds the lock otherwise false.
Discussion
If the lock is held by the calling thread, return true, otherwise the lock is unlocked, or held by another thread and false is returned.