• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to know, which NSThread has terminated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: How to know, which NSThread has terminated?
      • From: Shaun Wexler <email@hidden>
    • Re: How to know, which NSThread has terminated?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: CFHTTP POST bug? or PHP bug?
  • Next by Date: Re: Receiving tracking rectangle events
  • Previous by thread: Re: ABPeoplePickerValueSelectionDidChangeNotification does not work?
  • Next by thread: Re: How to know, which NSThread has terminated?
  • Index(es):
    • Date
    • Thread