mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +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
944e3a5ee8
commit
92aa5f9480
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…
Reference in a new issue