IOLockTryLock
Attempt to lock a mutex.
Declaration
bool IOLockTryLock(struct IOLock *lock);boolean_t IOLockTryLock(IOLock *lock);Parameters
- lock:
Pointer to the allocated lock.
Discussion
Lock the mutex if it is currently unlocked, and return true. If the lock is held by any thread, return false.