@@ -48,12 +48,11 @@ } - (void)lock { if (!of_mutex_lock(&_mutex)) - @throw [OFLockFailedException exceptionWithClass: [self class] - lock: self]; + @throw [OFLockFailedException exceptionWithLock: self]; } - (bool)tryLock { return of_mutex_trylock(&_mutex); @@ -60,12 +59,11 @@ } - (void)unlock { if (!of_mutex_unlock(&_mutex)) - @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_mutex_free(&_mutex)) - @throw [OFStillLockedException - exceptionWithClass: [self class] - lock: self]; + @throw [OFStillLockedException exceptionWithLock: self]; [_name release]; [super dealloc]; } @end