SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FXThreadEvent.h
Go to the documentation of this file.
1 /****************************************************************************/
9 //
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2004-2016 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 #ifndef FXThreadEvent_h
23 #define FXThreadEvent_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include "fxexdefs.h"
36 
37 #ifndef FXBASEOBJECT_H
38 #include "FXBaseObject.h"
39 #endif
40 namespace FXEX {
41 
113 class /*FXAPI */FXThreadEvent : public FXBaseObject {
114  FXDECLARE(FXThreadEvent)
115 
116 private:
118 
119 protected:
122 
123 public:
124  enum {
127  };
128 
129 public:
130  long onThreadSignal(FXObject*, FXSelector, void*);
131  long onThreadEvent(FXObject*, FXSelector, void*);
132 
133 public:
135  FXThreadEvent(FXObject* tgt = NULL, FXSelector sel = 0);
136 
143  void signal();
144 
151  void signal(FXuint seltype);
152 
154  virtual ~FXThreadEvent();
155 };
156 
157 } // namespace FXEX
158 
159 
160 #endif
161 
162 /****************************************************************************/
163 
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:307
FXThreadEvent & operator=(const FXThreadEvent &)
long onThreadSignal(FXObject *, FXSelector, void *)
long onThreadEvent(FXObject *, FXSelector, void *)
FXThreadEvent(const FXThreadEvent &)
virtual ~FXThreadEvent()
destructor
FXThreadEventHandle event