Re: waiting on a thread
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