@@ -28,22 +28,29 @@ */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *name; /** * @brief Locks the lock. + * + * @throw OFLockFailedException Acquiring the lock failed */ - (void)lock; /** * @brief Tries to lock the lock. * * @return A boolean whether the lock could be locked + * + * @throw OFLockFailedException The lock could not be acquired for another + * reason than it already being held */ - (bool)tryLock; /** * @brief Unlocks the lock. + * + * @throw OFUnlockFailedException Releasing the lock failed */ - (void)unlock; @end OF_ASSUME_NONNULL_END