|
| ResourceBackgroundQueue () |
|
virtual | ~ResourceBackgroundQueue () |
|
void | abortRequest (BackgroundProcessTicket ticket) |
| Aborts background process.
|
|
bool | canHandleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
| Implementation for WorkQueue::RequestHandler.
|
|
bool | canHandleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
| Implementation for WorkQueue::ResponseHandler.
|
|
WorkQueue::Response * | handleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
| Implementation for WorkQueue::RequestHandler.
|
|
void | handleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
| Implementation for WorkQueue::ResponseHandler.
|
|
virtual void | initialise (void) |
| Initialise the background queue system.
|
|
virtual BackgroundProcessTicket | initialiseAllResourceGroups (Listener *listener=0) |
| Initialise all resource groups which are yet to be initialised in the background.
|
|
virtual BackgroundProcessTicket | initialiseResourceGroup (const String &name, Listener *listener=0) |
| Initialise a resource group in the background.
|
|
virtual bool | isProcessComplete (BackgroundProcessTicket ticket) |
| Returns whether a previously queued process has completed or not.
|
|
virtual BackgroundProcessTicket | load (const String &resType, const String &name, const String &group, bool isManual=false, ManualResourceLoader *loader=0, const NameValuePairList *loadParams=0, Listener *listener=0) |
| Load a single resource in the background.
|
|
virtual BackgroundProcessTicket | loadResourceGroup (const String &name, Listener *listener=0) |
| Loads a resource group in the background.
|
|
virtual BackgroundProcessTicket | prepare (const String &resType, const String &name, const String &group, bool isManual=false, ManualResourceLoader *loader=0, const NameValuePairList *loadParams=0, Listener *listener=0) |
| Prepare a single resource in the background.
|
|
virtual BackgroundProcessTicket | prepareResourceGroup (const String &name, Listener *listener=0) |
| Prepares a resource group in the background.
|
|
virtual void | shutdown (void) |
| Shut down the background queue system.
|
|
virtual BackgroundProcessTicket | unload (const String &resType, const String &name, Listener *listener=0) |
| Unload a single resource in the background.
|
|
virtual BackgroundProcessTicket | unload (const String &resType, ResourceHandle handle, Listener *listener=0) |
| Unload a single resource in the background.
|
|
virtual BackgroundProcessTicket | unloadResourceGroup (const String &name, Listener *listener=0) |
| Unloads a resource group in the background.
|
|
| Singleton (void) |
|
| ~Singleton (void) |
|
Public Member Functions inherited from Ogre::WorkQueue::RequestHandler |
| RequestHandler () |
|
virtual | ~RequestHandler () |
|
Public Member Functions inherited from Ogre::WorkQueue::ResponseHandler |
| ResponseHandler () |
|
virtual | ~ResponseHandler () |
|
This class is used to perform Resource operations in a background thread.
- The general approach here is that on requesting a background resource process, your request is placed on a queue ready for the background thread to be picked up, and you will get a 'ticket' back, identifying the request. Your call will then return and your thread can proceed, knowing that at some point in the background the operation will be performed. In it's own thread, the resource operation will be performed, and once finished the ticket will be marked as complete. You can check the status of tickets by calling isProcessComplete() from your queueing thread.