Forces the lock to be relinquished.
- macOS 10.0+
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
break 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
try is invoked.
NSGeneric if the lock could not be removed.