|
bool | empty () |
|
void | add (const Key &key, Caller caller, CallerData callerdata, ResultQueue< Key, T, Caller, CallerData > *dest) |
|
GetRequest< Key, T, Caller, CallerData > | pop (unsigned int timeout_ms) |
|
GetRequest< Key, T, Caller, CallerData > | pop () |
|
void | pushResult (GetRequest< Key, T, Caller, CallerData > req, T res) |
|
template<typename Key, typename T, typename Caller, typename CallerData>
class RequestQueue< Key, T, Caller, CallerData >
Notes for RequestQueue usage.
- Parameters
-
Key | unique key to identify a request for a specific resource |
T | ? |
Caller | unique id of calling thread |
CallerData | data passed back to caller |
template<typename Key , typename T , typename Caller , typename CallerData >
void RequestQueue< Key, T, Caller, CallerData >::add |
( |
const Key & | key, |
|
|
Caller | caller, |
|
|
CallerData | callerdata, |
|
|
ResultQueue< Key, T, Caller, CallerData > * | dest ) |
|
inline |
References CallerInfo< Caller, Data, Key, T >::caller, GetRequest< Key, T, Caller, CallerData >::callers, CallerInfo< Caller, Data, Key, T >::data, CallerInfo< Caller, Data, Key, T >::dest, MutexedQueue< T >::getMutex(), MutexedQueue< T >::getQueue(), GetRequest< Key, T, Caller, CallerData >::key, RequestQueue< Key, T, Caller, CallerData >::m_queue, and MutexedQueue< T >::push_back().
Referenced by TextureSource::getTextureId().
template<typename Key , typename T , typename Caller , typename CallerData >
void RequestQueue< Key, T, Caller, CallerData >::pushResult |
( |
GetRequest< Key, T, Caller, CallerData > | req, |
|
|
T | res ) |
|
inline |
References CallerInfo< Caller, Data, Key, T >::caller, GetResult< Key, T, Caller, CallerData >::caller, GetRequest< Key, T, Caller, CallerData >::callers, CallerInfo< Caller, Data, Key, T >::data, CallerInfo< Caller, Data, Key, T >::dest, GetResult< Key, T, Caller, CallerData >::item, GetRequest< Key, T, Caller, CallerData >::key, GetResult< Key, T, Caller, CallerData >::key, and MutexedQueue< T >::push_back().
Referenced by TextureSource::processQueue().