mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fix locking problem when registering new description.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12501 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a55d359623
commit
027ae203fa
1 changed files with 2 additions and 0 deletions
|
@ -45,9 +45,11 @@ static NSMapTable *classMap;
|
|||
{
|
||||
NSNotificationCenter *nc;
|
||||
|
||||
[mapLock unlock];
|
||||
nc = [NSNotificationCenter defaultCenter];
|
||||
[nc postNotificationName: NSClassDescriptionNeededForClassNotification
|
||||
object: aClass];
|
||||
[mapLock lock];
|
||||
description = NSMapGet(classMap, aClass);
|
||||
}
|
||||
RETAIN(description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue