VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMainEventQueue.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtMainEventQueue_H_
11 #define DtMainEventQueue_H_
12 
14 
15 namespace makVrv
16 {
17  class DtDe;
18  class DtAsynchronousEventQueue;
19 
25  {
26  public:
29 
31  virtual ~DtMainEventQueue();
32 
35  virtual void postEvent(const Event& signal);
36 
38  virtual void processEvents();
39 
43  DtAsynchronousEventQueue* createAsynchronousEventQueue();
44 
47  bool destroyAsynchronousEventQueue(DtAsynchronousEventQueue* secondary);
48 
49  protected:
50 
53  void distributeEvents();
54 
55  protected:
56  typedef std::vector<DtAsynchronousEventQueue*> ThreadQueueList;
58 
60  };
61 }
62 
63 #endif
64 
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Contains makVrv::DtEventQueueInterface class.
boost::function< void(DtEventQueueInterface *) > Event
Definition: DtEventQueueInterface.h:29
std::vector< DtAsynchronousEventQueue * > ThreadQueueList
Definition: DtMainEventQueue.h:56
The event queue interface is a cross thread event queue used to emit event_signal across thread bound...
Definition: DtEventQueueInterface.h:26
The main event queue should live in the main application thread and is used to communicate events to ...
Definition: DtMainEventQueue.h:24
ThreadQueueList mySecondaryQueues
Definition: DtMainEventQueue.h:57
The asynchronous event queue. To create an asynchronous event queue the the makVrv::DtMainEventQueue ...
Definition: DtAsynchronousEventQueue.h:24
SharedEventList myEventsToDistribute
Definition: DtMainEventQueue.h:59
DtBoost::shared_ptr< EventList > SharedEventList
Definition: DtEventQueueInterface.h:31

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)