Contents

tryLock()

Attempts to acquire a lock.

Declaration

func tryLock() -> Bool

Return Value

true if a lock was acquired, false otherwise.

Discussion

This method returns immediately after the attempt to acquire a lock.

See Also

Deprecated instance methods