mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Source/NSLock.m: Correction for bug #25307. According to Cocoa
documentation, NSConditionLock should return NO, if the lock is unavailable. No exception should be thrown. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27612 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7cdb430fce
commit
1481ce2b54
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-01-16 17:26-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSLock.m: Correction for bug #25307. According to Cocoa
|
||||
documentation, NSConditionLock should return NO, if the lock is
|
||||
unavailable. No exception should be thrown.
|
||||
|
||||
2009-01-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSRunLoop.m: Revert temporary hack to work around bug in
|
||||
|
|
|
@ -447,8 +447,6 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
|
||||
- (BOOL) tryLock
|
||||
{
|
||||
CHECK_RECURSIVE_CONDITION_LOCK(_MUTEX);
|
||||
|
||||
// Ask the runtime to acquire a lock on the mutex
|
||||
if (objc_mutex_trylock(_MUTEX) == -1)
|
||||
return NO;
|
||||
|
|
Loading…
Reference in a new issue