Re: How to know, which NSThread has terminated?
Re: How to know, which NSThread has terminated?
- Subject: Re: How to know, which NSThread has terminated?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 28 May 2004 20:22:19 -0600
On May 28, 2004, at 5:57 PM, Philip Mvtteli wrote:
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.
Here's an idea: Send a notification to the main thread using
-performSelectorOnMainThread: with the NSThread object (using
NSThread's +currentThread class method to obtain an address) as the
notification's embedded object. I don't see why that wouldn't work,
unless you're targeting Mac OS X 10.1.x users...
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
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.