SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FXSingleEventThread.h
Go to the documentation of this file.
1
/****************************************************************************/
9
//
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2004-2014 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
23
#ifndef FXSingleEventThread_h
24
#define FXSingleEventThread_h
25
26
27
// ===========================================================================
28
// included modules
29
// ===========================================================================
30
#ifdef _MSC_VER
31
#include <
windows_config.h
>
32
#else
33
#include <
config.h
>
34
#endif
35
36
#include <fx.h>
37
#include <FXThread.h>
38
#include "
fxexdefs.h
"
39
40
class
MFXInterThreadEventClient
;
41
42
class
FXSingleEventThread
:
public
FXObject
,
public
FXThread
{
43
FXDECLARE(
FXSingleEventThread
)
44
45
private
:
46
FXEX::FXThreadEventHandle
event
;
47
48
private
:
49
FXSingleEventThread
(
const
FXSingleEventThread
&);
50
FXSingleEventThread
&
operator=
(
const
FXSingleEventThread
&);
51
52
public
:
53
enum
{
54
ID_THREAD_EVENT
55
};
56
57
public
:
58
long
onThreadSignal
(
FXObject
*, FXSelector,
void
*);
59
long
onThreadEvent
(
FXObject
*, FXSelector,
void
*);
60
61
public
:
62
FXSingleEventThread
(FXApp* a,
MFXInterThreadEventClient
* client);
63
64
void
signal
();
65
66
void
signal
(FXuint seltype);
67
68
virtual
FXint
run
() {
69
return
0;
70
}
71
72
virtual
~FXSingleEventThread
();
73
74
static
void
sleep
(
long
ms);
75
76
private
:
77
FXApp*
myApp
;
78
MFXInterThreadEventClient
*
myClient
;
79
80
protected
:
81
FXSingleEventThread
() { }
82
};
83
84
85
#endif
tmp
buildd
sumo-0.21.0+dfsg
src
utils
foxtools
FXSingleEventThread.h
Generated on Thu Nov 20 2014 19:49:53 for SUMO - Simulation of Urban MObility by
1.8.1.2