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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to