SUMO - Simulation of Urban MObility
FXThreadEvent.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2004-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 //
20 /****************************************************************************/
21 #ifndef FXThreadEvent_h
22 #define FXThreadEvent_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include "fxexdefs.h"
35 
36 #ifndef FXBASEOBJECT_H
37 #include "FXBaseObject.h"
38 #endif
39 namespace FXEX {
40 
112 class /*FXAPI */FXThreadEvent : public FXBaseObject {
113  FXDECLARE(FXThreadEvent)
114 
115 private:
117 
118 protected:
121 
122 public:
123  enum {
126  };
127 
128 public:
129  long onThreadSignal(FXObject*, FXSelector, void*);
130  long onThreadEvent(FXObject*, FXSelector, void*);
131 
132 public:
134  FXThreadEvent(FXObject* tgt = NULL, FXSelector sel = 0);
135 
142  void signal();
143 
150  void signal(FXuint seltype);
151 
153  virtual ~FXThreadEvent();
154 };
155 
156 } // namespace FXEX
157 
158 
159 #endif
160 
161 /****************************************************************************/
162 
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:306
FXThreadEvent & operator=(const FXThreadEvent &)
long onThreadSignal(FXObject *, FXSelector, void *)
long onThreadEvent(FXObject *, FXSelector, void *)
FXThreadEvent(const FXThreadEvent &)
virtual ~FXThreadEvent()
destructor
FXThreadEventHandle event