• 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: Cocoa class for queuing operations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa class for queuing operations?


  • Subject: Re: Cocoa class for queuing operations?
  • From: Jonathon Mah <email@hidden>
  • Date: Fri, 15 Jul 2005 23:23:27 +0930

On 2005-07-15, at 06:56, Jonathan del Strother wrote:

I wrote a texture loading class for my current project that sits in a separate thread, loading textures (duh). The main application sends a request for a new texture, I lock the queue, push the texture request onto the end, and unlock the queue. Meanwhile, the texture loader loops round and round, finds the next texture to load, loads it, removes it from the queue, and moves onto the next...

Today I started writing some code to queue up requests to send off to Amazon, and it occurred to me that I was writing pretty much the same code as my texture loader, and it must be a pretty common thing - there are uses for procedures like this all over the place.

So, I was wondering if there was a generic Cocoa class that already existed that I should be using... I've been searching the docs without finding anything, but I've duplicated whole swaths of pre- existing Cocoa code before, so was wondering if I'd missed anything.

It's not a class to do it, but there's a little discussion about this kind of thing at <http://developer.apple.com/documentation/Cocoa/ Conceptual/Multithreading/articles/CocoaLocks.html#//apple_ref/doc/ uid/20000737-125038>.



Jonathon Mah email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Cocoa class for queuing operations? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Re: Draw a portion of NSTextView
  • Next by Date: Re: Seeking advice: which "Design Patterns" book is best
  • Previous by thread: Cocoa class for queuing operations?
  • Next by thread: Re: Cocoa class for queuing operations?
  • Index(es):
    • Date
    • Thread