Re: Killing a Thread
Re: Killing a Thread
- Subject: Re: Killing a Thread
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 25 Nov 2008 09:16:39 -0700
On Nov 25, 2008, at 2:03 AM, Mahaboob wrote:
I'm new to thread programming. I need to kill the thread in a void
function.
How can I do this?
Why do you think you need to kill a thread? The normal way you do this
is to have your thread open, do its business, and then exit when
conditions are met. Killing a thread is rather rude and may cause
complications. Again, I suggest you use the NSOperation classes unless
you have a really good reason not to do that.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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