mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4588 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
15518a7468
commit
fd379e9937
1 changed files with 6 additions and 4 deletions
|
@ -69,11 +69,13 @@
|
|||
- (void) sendThreadMethod
|
||||
{
|
||||
/*
|
||||
* We are running in the new thread - so an autorelease puts us in the
|
||||
* pool for the thread. If the thread object calls [NSThread exit] the
|
||||
* pool will be released, otherwise, we call it ourself.
|
||||
* We are running in the new thread - so we store ourself in the thread
|
||||
* dictionary and release ourself - thus, when the thread exits, we will
|
||||
* be deallocated cleanly.
|
||||
*/
|
||||
AUTORELEASE(self);
|
||||
[[[NSThread currentThread] threadDictionary] setObject: self
|
||||
forKey: @"GSThreadLauncher"];
|
||||
RELEASE(self);
|
||||
[target performSelector: sel withObject: arg];
|
||||
[NSThread exit];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue