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-2020 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
20 //
21 /****************************************************************************/
22 #ifndef FXThreadEvent_h
23 #define FXThreadEvent_h
24 #include <config.h>
25 
26 #include "fxexdefs.h"
27 
28 #ifndef FXBASEOBJECT_H
29 #include "FXBaseObject.h"
30 #endif
31 namespace FXEX {
32 
104 class /*FXAPI */FXThreadEvent : public FXBaseObject {
105  FXDECLARE(FXThreadEvent)
106 
107 private:
109 
110 protected:
113 
114 public:
115  enum {
117  ID_LAST
118  };
119 
120 public:
121  long onThreadSignal(FXObject*, FXSelector, void*);
122  long onThreadEvent(FXObject*, FXSelector, void*);
123 
124 public:
126  FXThreadEvent(FXObject* tgt = NULL, FXSelector sel = 0);
127 
134  void signal();
135 
142  void signal(FXuint seltype);
143 
145  virtual ~FXThreadEvent();
146 };
147 
148 } // namespace FXEX
149 
150 
151 #endif
long onThreadEvent(FXObject *, FXSelector, void *)
long onThreadSignal(FXObject *, FXSelector, void *)
FXThreadEventHandle event
FXThreadEvent(const FXThreadEvent &)
virtual ~FXThreadEvent()
destructor
FXThreadEvent & operator=(const FXThreadEvent &)
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:303