@@ -218,10 +218,15 @@ if (!of_mutex_lock(&mutex)) @throw [OFMutexLockFailedException newWithClass: isa]; return self; } + +- (BOOL)tryLock +{ + return of_mutex_trylock(&mutex); +} - unlock { if (!of_mutex_unlock(&mutex)) @throw [OFMutexUnlockFailedException newWithClass: isa];