Instance Method


Forces the lock to be relinquished.


- (void)breakLock;


This method always succeeds unless the lock has been damaged. If another process has already unlocked or broken the lock, this method has no effect. You should generally use unlock rather than breakLock to relinquish a lock.

Even if you break a lock, there’s no guarantee that you will then be able to acquire the lock—another process might get it before your tryLock is invoked.

Raises an NSGenericException if the lock could not be removed.

See Also

Relinquishing a Lock

- unlock

Relinquishes the receiver.