Re: Where to declare/initialise an NSOperationQueue
Re: Where to declare/initialise an NSOperationQueue
- Subject: Re: Where to declare/initialise an NSOperationQueue
- From: Michael Ash <email@hidden>
- Date: Sun, 15 Feb 2009 08:41:09 -0500
On Sat, Feb 14, 2009 at 11:42 PM, Jerry Krinock <email@hidden> wrote:
>
> On 2009 Feb 14, at 08:36, Michael Ash wrote:
>
>> http://www.mikeash.com/?page=pyblog/dont-use-nsoperationqueue.html
>>
>> If you read all the way to the end you'll see that NSOperationQueue
>> can be induced to crash even when using only *one* queue in the entire
>> program, so you can't save yourself by sharing a single global queue
>> as was once thought.
>
> Actually if you read ^all^ the way to the end you'll see my results which
> say that, on my early 2006 Core 2 Duo Mac Mini, the crashes only occur if
> you have more than operation queue. I do not doubt the results of Michael
> and others, though; it may be hardware-dependent.
Well yes, that's why I said "can", not "always will". It's a threading
bug. Changes in behavior on different hardware is only to be expected.
Mike
_______________________________________________
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