make housekeeping timer more transparent and remove deprecated code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22593 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-03-04 06:47:56 +00:00
parent 68ecc62aba
commit e1b9889677
9 changed files with 96 additions and 130 deletions

View file

@ -53,6 +53,7 @@
#include "Foundation/NSConnection.h"
#include "Foundation/NSInvocation.h"
#include "GSRunLoopCtxt.h"
typedef struct { @defs(NSThread) } NSThread_ivars;
@ -353,10 +354,6 @@ GSCurrentThreadDictionary(void)
* on-disk database.
*/
static NSTimer *housekeeper = nil;
NSTimer *GSHousekeeper(void)
{
return housekeeper;
}
/**
* Returns the runloop for the specified thread (or, if t is nil,
@ -406,7 +403,8 @@ GSRunLoopForThread(NSThread *t)
selector: NULL
userInfo: nil
repeats: YES];
[r addTimer: housekeeper forMode: NSDefaultRunLoopMode];
[r _setHousekeeper: housekeeper];
RELEASE(housekeeper);
RELEASE(arp);
}
}