Go to the documentation of this file.
28 #ifndef __ResourceBackgroundQueue_H__
29 #define __ResourceBackgroundQueue_H__
114 RT_INITIALISE_GROUP = 0,
115 RT_INITIALISE_ALL_GROUPS = 1,
116 RT_PREPARE_GROUP = 2,
117 RT_PREPARE_RESOURCE = 3,
119 RT_LOAD_RESOURCE = 5,
121 RT_UNLOAD_RESOURCE = 7
138 { (void)r;
return o; }
148 : resource(r), request(req)
155 { (void)r;
return o; }
167 virtual void initialise(
void);
172 virtual void shutdown(
void);
183 const String& name, Listener* listener = 0);
194 Listener* listener = 0);
204 Listener* listener = 0);
215 Listener* listener = 0);
226 Listener* listener = 0);
236 Listener* listener = 0);
245 Listener* listener = 0);
265 const String& group,
bool isManual =
false,
268 Listener* listener = 0);
287 const String& group,
bool isManual =
false,
290 Listener* listener = 0);
unsigned long long int ResourceHandle
RequestType
Enumerates the type of requests.
virtual ~Listener()
Need virtual destructor in case subclasses use it.
Interface to a general purpose request / response style background work queue.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
General purpose request structure.
This abstract listener interface lets you get notifications of completed background processes instead...
OutstandingRequestSet mOutstandingRequestSet
This class is used to perform Resource operations in a background thread.
_OgreExport friend std::ostream & operator<<(std::ostream &o, const ResourceResponse &r)
_OgreExport friend std::ostream & operator<<(std::ostream &o, const ResourceRequest &r)
General purpose response structure.
unsigned long long int RequestID
Numeric identifier for a request.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Struct that holds details of queued notifications.
Encapsulates a queued request for the background queue.
ManualResourceLoader * loader
Interface definition for a handler of responses.
Template class for creating single-instance global classes.
BackgroundProcessResult result
bool error
Whether an error occurred.
NameValuePairList * loadParams
ResourceHandle resourceHandle
String message
Any messages from the process.
Encapsulates the result of a background queue request.
ResourceResponse(ResourcePtr r, const ResourceRequest &req)
WorkQueue::RequestID BackgroundProcessTicket
Identifier of a background process.
Interface definition for a handler of requests.
set< BackgroundProcessTicket >::type OutstandingRequestSet
BackgroundProcessResult()
Interface describing a manual resource loader.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.