mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
561f598af2
commit
28aa5bc7d9
1 changed files with 13 additions and 15 deletions
|
@ -97,7 +97,6 @@ static NSMutableDictionary *_hostCache = nil;
|
|||
[_addresses addObject: addr];
|
||||
}
|
||||
|
||||
[_hostCacheLock lock];
|
||||
if (_hostCacheEnabled == YES)
|
||||
{
|
||||
NSEnumerator *enumerator;
|
||||
|
@ -114,7 +113,6 @@ static NSMutableDictionary *_hostCache = nil;
|
|||
[_hostCache setObject: self forKey: key];
|
||||
}
|
||||
}
|
||||
[_hostCacheLock unlock];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -133,7 +131,7 @@ static NSMutableDictionary *_hostCache = nil;
|
|||
{
|
||||
if (self == [NSHost class])
|
||||
{
|
||||
_hostCacheLock = [[NSRecursiveLock alloc] init];
|
||||
_hostCacheLock = [[NSLock alloc] init];
|
||||
_hostCache = [NSMutableDictionary new];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue