mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
ae99be2995
commit
b75764eba4
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue