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:
Richard Frith-Macdonald 2003-11-03 12:32:46 +00:00
parent c0109a7322
commit 61e0197b79
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Nov 03 12:30:00 2003 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSNotificationCenter.m: Use locking at all times until
problems with GNUMail threading and notifications are analysed/fixed.
Mon Nov 03 08:35:00 2003 Richard Frith-Macdonald <rfm@gnu.org> Mon Nov 03 08:35:00 2003 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: Remove unnecessary -copy implementations for * Source/GSString.m: Remove unnecessary -copy implementations for

View file

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