• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New question about borken NSOperationQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New question about borken NSOperationQueue


  • Subject: Re: New question about borken NSOperationQueue
  • From: Peter N Lewis <email@hidden>
  • Date: Tue, 7 Apr 2009 14:03:57 +0800

On 01/02/2009, at 5:40 , email@hidden wrote:
Previous post indicates that NSOperationQueue only seems to work with ONE
queue.

It is worse than that, it can crash even with a single queue - the only believed safe case is to a single core processor (ie, the iPhone). Otherwise you have to accept roughly one in a million operations to crash (which may be acceptable if you are using it very sparingly).


If I nest another NSOperationQueue instead of using appController's
NSOperationQueue the BUG forces a crash every time.

Evidently this is a KNOWN bug which is supposed to be fixed in 10.6

It is a known bug - Apple have not stated that it will be fixed for 10.6.


I am going to implement my own pthreads with a tcb block to go low- level
on this problem, but would LOVE to be able to use Apples high-level tools.

Have you looked at RAOperationQueue?

<http://www.rogueamoeba.com/utm/2009/01/10/raoperationqueue-102/>

That said, I don't believe its really designed for high performance so much as for ease of use.

But it might give you a starting point.

Enjoy,
   Peter.

--
     Run macros from your iPhone with Keyboard Maestro Control!
         or take a break with Derzle for your iPhone

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
Aragom Space War <http://www.stairways.com/iphone/aragom> Don't get killed!
Derzle <http://www.stairways.com/iphone/derzle> Enjoy a relaxing puzzle.
<http://www.stairways.com/> <http://download.stairways.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


  • Prev by Date: Re: Does waitUntilExit really mean that?
  • Next by Date: Re: Re: NSWindow from code
  • Previous by thread: Re: NSMatrix of NSButtonCells prototype bindings not applied to instances in matrix
  • Next by thread: Field editor undo vs document dirty
  • Index(es):
    • Date
    • Thread