mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
|
@ -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>
|
2003-07-22 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Version 1.7.2
|
* Version 1.7.2
|
||||||
|
|
|
@ -2279,6 +2279,7 @@ struct objc_method_description_list {
|
||||||
@interface NSZombie
|
@interface NSZombie
|
||||||
- (retval_t) forward:(SEL)aSel :(arglist_t)argFrame;
|
- (retval_t) forward:(SEL)aSel :(arglist_t)argFrame;
|
||||||
- (void) forwardInvocation: (NSInvocation*)anInvocation;
|
- (void) forwardInvocation: (NSInvocation*)anInvocation;
|
||||||
|
- (NSMethodSignature*) methodSignatureForSelector: (SEL)aSelector;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSZombie
|
@implementation NSZombie
|
||||||
|
@ -2301,5 +2302,20 @@ struct objc_method_description_list {
|
||||||
[anInvocation setReturnValue: (void*)v];
|
[anInvocation setReturnValue: (void*)v];
|
||||||
return;
|
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
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue