Contents

IORecursiveLockHaveLock

Declaration

bool IORecursiveLockHaveLock(struct IORecursiveLock *lock);

Parameters

  • lock:

    Pointer to the allocated lock.

Return Value

True if the calling thread holds the lock otherwise false.

Discussion

Check if a recursive lock is held by the calling thread.

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.

See Also

Functions