@@ -35,11 +35,11 @@ - (instancetype)init { self = [super init]; - if (of_mutex_new(&_mutex) != 0) { + if (OFPlainMutexNew(&_mutex) != 0) { Class c = self.class; [self release]; @throw [OFInitializationFailedException exceptionWithClass: c]; } @@ -49,11 +49,11 @@ } - (void)dealloc { if (_initialized) { - int error = of_mutex_free(&_mutex); + int error = OFPlainMutexFree(&_mutex); if (error != 0) { OF_ENSURE(error == EBUSY); @throw [OFStillLockedException exceptionWithLock: self]; @@ -65,20 +65,20 @@ [super dealloc]; } - (void)lock { - int error = of_mutex_lock(&_mutex); + int error = OFPlainMutexLock(&_mutex); if (error != 0) @throw [OFLockFailedException exceptionWithLock: self errNo: error]; } - (bool)tryLock { - int error = of_mutex_trylock(&_mutex); + int error = OFPlainMutexTryLock(&_mutex); if (error != 0) { if (error == EBUSY) return false; else @@ -89,11 +89,11 @@ return true; } - (void)unlock { - int error = of_mutex_unlock(&_mutex); + int error = OFPlainMutexUnlock(&_mutex); if (error != 0) @throw [OFUnlockFailedException exceptionWithLock: self errNo: error]; }