My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::ResourceRequest Struct Reference

ParaEngine resource request. More...

#include <IDataLoader.h>

Inheritance diagram for ParaEngine::ResourceRequest:
ParaEngine::PoolBase< ResourceRequest > ParaEngine::intrusive_ptr_thread_safe_base

Public Member Functions

 ResourceRequest (ResourceRequestType nType=ResourceRequestType_Local)
 

Public Attributes

ResourceRequestType m_nType
 request type
 
IDataLoaderm_pDataLoader
 
IDataProcessorm_pDataProcessor
 
HRESULT * m_pHR
 
HRESULT m_last_error_code
 
void ** m_ppDeviceObject
 
int m_nProcessorQueueID
 process queue id, default to 0. More...
 
bool m_bLock
 
bool m_bCopy
 
bool m_bError
 
- Public Attributes inherited from ParaEngine::intrusive_ptr_thread_safe_base
boost::detail::atomic_count m_ref_count
 

Additional Inherited Members

- Static Public Member Functions inherited from ParaEngine::PoolBase< ResourceRequest >
static void * operator new (size_t size)
 
static void operator delete (void *p)
 
- Protected Member Functions inherited from ParaEngine::intrusive_ptr_thread_safe_base
 intrusive_ptr_thread_safe_base (const intrusive_ptr_thread_safe_base &)
 
intrusive_ptr_thread_safe_baseoperator= (const intrusive_ptr_thread_safe_base &)
 

Detailed Description

ParaEngine resource request.

Member Data Documentation

§ m_nProcessorQueueID

int ParaEngine::ResourceRequest::m_nProcessorQueueID

process queue id, default to 0.

Each process queue matches to one or more processor threads. And each processor thread can be associated with just one processor queue. Please note that, following are internal queues:

  • queue[0] is for local CPU intensive tasks like unzip. (only one thread process it)
  • queue[1] is for remote background asset loading. (4 threads process it)
  • queue[2] is for remote REST URL request. (2 threads process it)
    Note
    : internal queues are created automatically. if one wants to use other queues, one needs to create the processor worker first.

The documentation for this struct was generated from the following files: