mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +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
b1aef94383
commit
89d3cab769
2 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-07-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Implement methodSignatureForSelector for zombies
|
||||
|
||||
2003-07-22 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Version 1.7.2
|
||||
|
|
|
@ -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…
Reference in a new issue