tryLock(whenCondition:)
Attempts to acquire a lock if the receiver’s condition is equal to the specified condition.
Declaration
func tryLock(whenCondition condition: Int) -> BoolReturn Value
Discussion
As part of its implementation, this method invokes lock(whenCondition:before:). This method returns immediately.