• 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: waiting on a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: waiting on a thread


  • Subject: Re: waiting on a thread
  • From: Phillip Mills <email@hidden>
  • Date: Mon, 13 Dec 2004 11:44:15 -0500

On Dec 13, 2004, at 11:17 AM, Dennis Falling wrote:

Is there any way to have a method spawn a thread, then wait for that thread to end before continuing with other calls in that method? Does this negate the purpose of threads?

If the caller never has anything else to do, then yes it sounds like a waste of effort to do threading.


If the caller has other work and then needs to wait, it would normally (i.e. in pthreads) use a "pthread_join" function to synchronize. I'm too lazy to check whether there's an equivalent function for Cocoa...I'd probably just use Posix. :-)

........................
Phillip Mills
Multi-platform software development
(416) 224-0714

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >waiting on a thread (From: Dennis Falling <email@hidden>)

  • Prev by Date: Re: c++ exceptions causing abort
  • Next by Date: Re: waiting on a thread
  • Previous by thread: waiting on a thread
  • Next by thread: Re: waiting on a thread
  • Index(es):
    • Date
    • Thread