mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix race condition.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15268 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65d972a7a6
commit
278469e140
2 changed files with 8 additions and 1 deletions
|
@ -786,9 +786,11 @@ static NSDate *theFuture;
|
|||
}
|
||||
else
|
||||
{
|
||||
NSConditionLock *l = lock;
|
||||
|
||||
[lock lock];
|
||||
[lock unlockWithCondition: 1];
|
||||
lock = nil;
|
||||
[l unlockWithCondition: 1];
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue