• 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
Re: any help with [NSThread initWithTarget:selector:object]???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: any help with [NSThread initWithTarget:selector:object]???


  • Subject: Re: any help with [NSThread initWithTarget:selector:object]???
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 15 May 2008 03:03:13 -0500

On May 15, 2008, at 1:02 AM, Alex Esplin wrote:

When you start a
thread with [threadname start] how do you wait for it?  I can't seem
to find anything on that...

There doesn't seem to be any "join"-type functionality in NSThread. You have to use thread synchronization primitives, I suppose. NSConditionLock is a good candidate.


Cheers,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >any help with [NSThread initWithTarget:selector:object]??? (From: "Alex Esplin" <email@hidden>)
 >Re: any help with [NSThread initWithTarget:selector:object]??? (From: Ken Thomases <email@hidden>)
 >Re: any help with [NSThread initWithTarget:selector:object]??? (From: "Alex Esplin" <email@hidden>)

  • Prev by Date: Setting NSObjectController's to file's owner
  • Next by Date: Re: any help with [NSThread initWithTarget:selector:object]???
  • Previous by thread: Re: any help with [NSThread initWithTarget:selector:object]???
  • Next by thread: Re: any help with [NSThread initWithTarget:selector:object]???
  • Index(es):
    • Date
    • Thread