@@ -48,12 +48,11 @@ } - (void)lock { if (!of_rmutex_lock(&_rmutex)) - @throw [OFLockFailedException exceptionWithClass: [self class] - lock: self]; + @throw [OFLockFailedException exceptionWithLock: self]; } - (bool)tryLock { return of_rmutex_trylock(&_rmutex); @@ -60,12 +59,11 @@ } - (void)unlock { if (!of_rmutex_unlock(&_rmutex)) - @throw [OFUnlockFailedException exceptionWithClass: [self class] - lock: self]; + @throw [OFUnlockFailedException exceptionWithLock: self]; } - (void)setName: (OFString*)name { OF_SETTER(_name, name, true, 1) @@ -87,14 +85,12 @@ - (void)dealloc { if (_initialized) if (!of_rmutex_free(&_rmutex)) - @throw [OFStillLockedException - exceptionWithClass: [self class] - lock: self]; + @throw [OFStillLockedException exceptionWithLock: self]; [_name release]; [super dealloc]; } @end