discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to know, which NSThread has terminated?


From: Philip Mötteli
Subject: How to know, which NSThread has terminated?
Date: Sat, 29 May 2004 01:57:22 +0200

Hi


When I fork a thread using

+(void)detachNewThreadSelector:(SEL)aSelector toTarget:aTarget withObject:anArgument

I have no idea how to recognize this just created thread later, when it terminates. What I need is something like a handle. I mean objc_thread_detach() gives back an objc_thread_t too. I could put some flag into the tread dictionary, but it would be so much nicer to be able to just ask the thread for its handle or to keep the address of the NSThread instance. But because there's void as the return value, all this is not possible.
How do people keep track of a specific thread, using NSThread?


Re
Phil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]