mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
Change finalization to match MacOS-X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
952af9c197
commit
b830b55dee
22 changed files with 116 additions and 95 deletions
|
@ -147,7 +147,7 @@ static NSDate *theFuture = nil;
|
|||
* The GSTimedPerformer class is used to hold information about
|
||||
* messages which are due to be sent to objects at a particular time.
|
||||
*/
|
||||
@interface GSTimedPerformer: NSObject <GCFinalization>
|
||||
@interface GSTimedPerformer: NSObject
|
||||
{
|
||||
@public
|
||||
SEL selector;
|
||||
|
@ -168,7 +168,7 @@ static NSDate *theFuture = nil;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[self gcFinalize];
|
||||
[self finalize];
|
||||
TEST_RELEASE(timer);
|
||||
RELEASE(target);
|
||||
RELEASE(argument);
|
||||
|
@ -183,7 +183,7 @@ static NSDate *theFuture = nil;
|
|||
removeObjectIdenticalTo: self];
|
||||
}
|
||||
|
||||
- (void) gcFinalize
|
||||
- (void) finalize
|
||||
{
|
||||
[self invalidate];
|
||||
}
|
||||
|
@ -755,11 +755,11 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[self gcFinalize];
|
||||
[self finalize];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) gcFinalize
|
||||
- (void) finalize
|
||||
{
|
||||
#ifdef HAVE_POLL_F
|
||||
if (_extra != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue