New Autorelease pool stuff for NNTimer

This commit is contained in:
nigel 2004-05-25 07:50:14 +00:00
parent 826329a1c8
commit a141e8dd9e

View File

@ -2,7 +2,7 @@
// NNThread.m -Not Nextstep Thread? // NNThread.m -Not Nextstep Thread?
// Nigel's Nice Thread? // Nigel's Nice Thread?
// //
// Revision 1.3, Tuesday Oct 8 2002 // Revision 1.4, Tuesday May 25 2004
// //
// Created by Nigel Pearson on Tue Nov 28 2000. // Created by Nigel Pearson on Tue Nov 28 2000.
// Public Domain. No rights reserved. // Public Domain. No rights reserved.
@ -181,6 +181,15 @@ pthreadWrapper (void *arg)
return self; return self;
} }
- (NNTimer *) initWithAutoRelPool
{
self = [super init];
allocPool = YES;
repeating = YES;
return self;
}
- (void) changeIntervalTo: (int)number - (void) changeIntervalTo: (int)number
units: (NNTimeUnits)units units: (NNTimeUnits)units
{ {