Cocoa class for queuing operations?
Cocoa class for queuing operations?
- Subject: Cocoa class for queuing operations?
- From: Jonathan del Strother <email@hidden>
- Date: Thu, 14 Jul 2005 22:26:40 +0100
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.
Anyone?
Jon
_______________________________________________
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