VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtAsynchronousEventQueue Class Reference

The asynchronous event queue. To create an asynchronous event queue the the makVrv::DtMainEventQueue class.

Inheritance diagram for makVrv::DtAsynchronousEventQueue:
Inheritance graph
[legend]

Public Member Functions

void initializeInThread ()
 
virtual void postEvent (const Event &signal)
 
Secondary thread functions
virtual void processEvents ()
 
- Public Member Functions inherited from makVrv::DtEventQueueInterface
virtual ~DtEventQueueInterface ()
 
DtVirtualBaseClassfindInstance (const std::string &className)
 
void registerInstance (const std::string &className, DtVirtualBaseClass *instance)
 
void executeEvents (const SharedEventList &signalList)
 

Static Public Member Functions

static DtAsynchronousEventQueuefindThisThreadEventQueue ()
 

Protected Member Functions

 DtAsynchronousEventQueue ()
 
virtual ~DtAsynchronousEventQueue ()
 
Main thread functions
void queueSharedEventList (SharedEventList sharedEvents)
 
- Protected Member Functions inherited from makVrv::DtEventQueueInterface
 DtEventQueueInterface ()
 

Protected Attributes

DtLockedBufferedQueue
< SharedEventList
myQueuedLists
 
- Protected Attributes inherited from makVrv::DtEventQueueInterface
InstanceMap myInstanceMap
 

Friends

class DtMainEventQueue
 

Additional Inherited Members

- Public Types inherited from makVrv::DtEventQueueInterface
typedef boost::function< void(DtEventQueueInterface *) > Event
 
typedef std::vector< EventEventList
 
typedef std::shared_ptr
< EventList
SharedEventList
 
- Protected Types inherited from makVrv::DtEventQueueInterface
typedef std::map< std::string,
DtVirtualBaseClass * > 
InstanceMap
 

Constructor & Destructor Documentation

makVrv::DtAsynchronousEventQueue::DtAsynchronousEventQueue ( )
protected

Create and destroy asynchronous event queues the the MainEventQueue.

virtual makVrv::DtAsynchronousEventQueue::~DtAsynchronousEventQueue ( )
protectedvirtual

Member Function Documentation

void makVrv::DtAsynchronousEventQueue::initializeInThread ( )

This function should be called once in the thread which will execute these functions.

static DtAsynchronousEventQueue* makVrv::DtAsynchronousEventQueue::findThisThreadEventQueue ( )
static

Return the asynchronous event queue for this thread.

virtual void makVrv::DtAsynchronousEventQueue::postEvent ( const Event signal)
virtual

Override the default add event, this function does nothing as asynchronous event queues do not communicate back to the main thread.

Implements makVrv::DtEventQueueInterface.

virtual void makVrv::DtAsynchronousEventQueue::processEvents ( )
virtual

this function should be called frequently in the thread's, usually in it's tick loop.

Implements makVrv::DtEventQueueInterface.

void makVrv::DtAsynchronousEventQueue::queueSharedEventList ( SharedEventList  sharedEvents)
protected

This function is called by the DtMainEventQueue.

Friends And Related Function Documentation

friend class DtMainEventQueue
friend

Member Data Documentation

DtLockedBufferedQueue< SharedEventList > makVrv::DtAsynchronousEventQueue::myQueuedLists
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)