mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
68ecc62aba
commit
e1b9889677
9 changed files with 96 additions and 130 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue