VR-Forces 5.0.2 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvUtil
DtAsynchronousEventQueue.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 DtAsynchronousEventQueue_H_
11
#define DtAsynchronousEventQueue_H_
12
13
#include <
vrvUtil/vrvUtil.h
>
14
#include <
vrvUtil/DtLockedBufferedQueue.h
>
15
#include <
vrvUtil/DtEventQueueInterface.h
>
16
17
#include <boost/thread/tss.hpp>
18
19
namespace
makVrv
20
{
24
class
DT_DLL_VRVUTIL
DtAsynchronousEventQueue
:
public
DtEventQueueInterface
25
{
26
public
:
27
28
friend
class
DtMainEventQueue
;
29
32
void
initializeInThread();
33
35
static
DtAsynchronousEventQueue
* findThisThreadEventQueue();
36
40
virtual
void
postEvent(
const
Event
& signal);
41
43
44
virtual
void
processEvents();
48
49
protected
:
50
52
DtAsynchronousEventQueue
();
53
virtual
~
DtAsynchronousEventQueue
();
54
56
57
void
queueSharedEventList(
SharedEventList
sharedEvents);
60
61
protected
:
62
DtLockedBufferedQueue< SharedEventList >
myQueuedLists
;
63
64
};
65
}
66
67
#endif
68
DT_DLL_VRVUTIL
#define DT_DLL_VRVUTIL
Definition:
vrvUtil.h:34
DtEventQueueInterface.h
Contains makVrv::DtEventQueueInterface class.
makVrv::DtAsynchronousEventQueue::myQueuedLists
DtLockedBufferedQueue< SharedEventList > myQueuedLists
Definition:
DtAsynchronousEventQueue.h:62
makVrv::DtEventQueueInterface::Event
boost::function< void(DtEventQueueInterface *) > Event
Definition:
DtEventQueueInterface.h:29
DtLockedBufferedQueue.h
Contains makVrv::DtLockedBufferedQueue class.
vrvUtil.h
Contains DLL export macros.
makVrv::DtEventQueueInterface
The event queue interface is a cross thread event queue used to emit event_signal across thread bound...
Definition:
DtEventQueueInterface.h:26
makVrv::DtLockedBufferedQueue< SharedEventList >
makVrv::DtMainEventQueue
The main event queue should live in the main application thread and is used to communicate events to ...
Definition:
DtMainEventQueue.h:24
makVrv::DtAsynchronousEventQueue
The asynchronous event queue. To create an asynchronous event queue the the makVrv::DtMainEventQueue ...
Definition:
DtAsynchronousEventQueue.h:24
makVrv::DtEventQueueInterface::SharedEventList
DtBoost::shared_ptr< EventList > SharedEventList
Definition:
DtEventQueueInterface.h:31
Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)