Eclipse SUMO - Simulation of Urban MObility
FXSingleEventThread.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 
23 #ifndef FXSingleEventThread_h
24 #define FXSingleEventThread_h
25 #include <config.h>
26 
27 #include <fx.h>
28 #include <FXThread.h>
29 #include "fxexdefs.h"
30 
32 
33 class FXSingleEventThread : public FXObject, public FXThread {
34  FXDECLARE(FXSingleEventThread)
35 
36 private:
38 
39 private:
42 
43 public:
44  enum {
46  };
47 
48 public:
49  long onThreadSignal(FXObject*, FXSelector, void*);
50  long onThreadEvent(FXObject*, FXSelector, void*);
51 
52 public:
54 
55  void signal();
56 
57  void signal(FXuint seltype);
58 
59  virtual FXint run() {
60  return 0;
61  }
62 
63  virtual ~FXSingleEventThread();
64 
65  static void sleep(long ms);
66 
67 private:
68  FXApp* myApp;
70 
71 protected:
73 };
74 
75 
76 #endif
FXSingleEventThread & operator=(const FXSingleEventThread &)
static void sleep(long ms)
long onThreadEvent(FXObject *, FXSelector, void *)
FXEX::FXThreadEventHandle event
MFXInterThreadEventClient * myClient
long onThreadSignal(FXObject *, FXSelector, void *)
FXSingleEventThread(const FXSingleEventThread &)
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:303