Use locking even when single threaded ... temporary hack

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18042 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-11-03 12:32:46 +00:00
parent ae99be2995
commit b75764eba4
2 changed files with 7 additions and 1 deletions

View file

@ -411,6 +411,8 @@ static NCTable *newNCTable(void)
t->array = NSZoneMalloc(NSDefaultMallocZone(), sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(t->array, NSDefaultMallocZone(), 16);
// t->_lock = [GSLazyRecursiveLock new];
t->_lock = [NSRecursiveLock new];
return t;
}
@ -588,7 +590,6 @@ static NSNotificationCenter *default_center = nil;
if ((self = [super init]) != nil)
{
TABLE = newNCTable();
TABLE->_lock = [GSLazyRecursiveLock new];
}
return self;
}