Differences From Artifact [0701aeb932]:
- File src/OFThread.m — part of check-in [c7ab3a46d1] at 2009-12-02 20:02:26 on branch trunk — Introduce some consistency when to use OFObject* and when to use id. (user: js, size: 3899) [annotate] [blame] [check-ins using]
To Artifact [acb2745598]:
- File src/OFThread.m — part of check-in [20e1c0e24b] at 2010-01-30 00:50:46 on branch trunk — Add -[tryLock] to OFMutex. (user: js, size: 3954) [annotate] [blame] [check-ins using]
︙ | |||
216 217 218 219 220 221 222 223 224 225 226 227 228 229 | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | + + + + + | - lock { 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]; return self; |
︙ |