How to know, which NSThread has terminated?
How to know, which NSThread has terminated?
- Subject: How to know, which NSThread has terminated?
- From: Philip Mötteli <email@hidden>
- 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
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.