Re: Pausing an NSThread
Re: Pausing an NSThread
- Subject: Re: Pausing an NSThread
- From: Jens Alfke <email@hidden>
- Date: Mon, 9 Nov 2009 10:58:44 -0800
On Nov 8, 2009, at 2:17 AM, Roland King wrote:
Or look at NSOperation/NSOperationQueue which absolves you of the
need to care about threads, it's done for you (and I believe makes
use of Grand Central Dispatch on current versions of OSX). Just
package up whatever it is you need to do and send it off and some
thread somewhere will do it for you.
For the record: +1 to this. Let NSOperationQueue manage concurrency
for you instead of using NSThread, unless you really know what you're
doing with multithreading. It's much easier and safer.
—Jens_______________________________________________
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