mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
de4301689d
commit
60595000ea
2 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue