VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtMainEventQueue Class Reference

The main event queue should live in the main application thread and is used to communicate events to other threads. More...

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

List of all members.

Public Member Functions

 DtMainEventQueue ()
 CTOR, typically there should only be one instance per main thread.
virtual ~DtMainEventQueue ()
 DTOR.
virtual void postEvent (const Event &signal)
 Add an event to the queue.
virtual void processEvents ()
 Should be called regularly (typically once per tick in main thread)
DtAsynchronousEventQueuecreateAsynchronousEventQueue ()
 be called in main thread, will start queuing all signals generated after this point, the pointer is designed to be passed to a secondary thread.
bool destroyAsynchronousEventQueue (DtAsynchronousEventQueue *secondary)
 be called in main thread, typically after the secondary thread has stopped.

Protected Types

typedef std::vector
< DtAsynchronousEventQueue * > 
ThreadQueueList

Protected Member Functions

void distributeEvents ()
 Distribute all added events to the secondary queues.

Protected Attributes

ThreadQueueList mySecondaryQueues
SharedEventList myEventsToDistribute

Detailed Description

The main event queue should live in the main application thread and is used to communicate events to other threads.

Events are typically generated by event_signal instances.


Member Typedef Documentation


Constructor & Destructor Documentation

CTOR, typically there should only be one instance per main thread.

DTOR.


Member Function Documentation

virtual void makVrv::DtMainEventQueue::postEvent ( const Event signal) [virtual]

Add an event to the queue.

The main event queue will pass these events to any asynchronous event queues, or simply delete them.

Implements makVrv::DtEventQueueInterface.

virtual void makVrv::DtMainEventQueue::processEvents ( ) [virtual]

Should be called regularly (typically once per tick in main thread)

Implements makVrv::DtEventQueueInterface.

be called in main thread, will start queuing all signals generated after this point, the pointer is designed to be passed to a secondary thread.

be called in main thread, typically after the secondary thread has stopped.

Distribute all added events to the secondary queues.

This is called by processEvents.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)