mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Revrt (temporarily?) inconsistent change in locking behavior.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27618 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1481ce2b54
commit
61a6648a75
2 changed files with 15 additions and 0 deletions
|
@ -447,6 +447,8 @@ 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…
Add table
Add a link
Reference in a new issue