zombie fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17317 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-07-23 21:42:03 +00:00
parent de4301689d
commit 60595000ea
2 changed files with 20 additions and 0 deletions

View file

@ -2279,6 +2279,7 @@ struct objc_method_description_list {
@interface NSZombie
- (retval_t) forward:(SEL)aSel :(arglist_t)argFrame;
- (void) forwardInvocation: (NSInvocation*)anInvocation;
- (NSMethodSignature*) methodSignatureForSelector: (SEL)aSelector;
@end
@implementation NSZombie
@ -2301,5 +2302,20 @@ struct objc_method_description_list {
[anInvocation setReturnValue: (void*)v];
return;
}
- (NSMethodSignature*) methodSignatureForSelector: (SEL)aSelector
{
Class c;
if (allocationLock != 0)
{
objc_mutex_lock(allocationLock);
}
c = NSMapGet(zombieMap, (void*)self);
if (allocationLock != 0)
{
objc_mutex_unlock(allocationLock);
}
return [c instanceMethodSignatureForSelector: aSelector];
}
@end