Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 //
18 /****************************************************************************/
19 #ifndef FXThreadEvent_h
20 #define FXThreadEvent_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include "fxexdefs.h"
29 
30 #ifndef FXBASEOBJECT_H
31 #include "FXBaseObject.h"
32 #endif
33 namespace FXEX {
34 
106 class /*FXAPI */FXThreadEvent : public FXBaseObject {
107  FXDECLARE(FXThreadEvent)
108 
109 private:
111 
112 protected:
115 
116 public:
117  enum {
120  };
121 
122 public:
123  long onThreadSignal(FXObject*, FXSelector, void*);
124  long onThreadEvent(FXObject*, FXSelector, void*);
125 
126 public:
128  FXThreadEvent(FXObject* tgt = NULL, FXSelector sel = 0);
129 
136  void signal();
137 
144  void signal(FXuint seltype);
145 
147  virtual ~FXThreadEvent();
148 };
149 
150 } // namespace FXEX
151 
152 
153 #endif
154 
155 /****************************************************************************/
156 
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:300
FXThreadEvent & operator=(const FXThreadEvent &)
long onThreadSignal(FXObject *, FXSelector, void *)
long onThreadEvent(FXObject *, FXSelector, void *)
FXThreadEvent(const FXThreadEvent &)
virtual ~FXThreadEvent()
destructor
FXThreadEventHandle event