* 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:
Gregory John Casamento 2009-01-16 22:20:42 +00:00
parent 7cdb430fce
commit 1481ce2b54
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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;