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-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 
20 #ifndef FXSingleEventThread_h
21 #define FXSingleEventThread_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <fx.h>
30 #include <FXThread.h>
31 #include "fxexdefs.h"
32 
34 
35 class FXSingleEventThread : public FXObject, public FXThread {
36  FXDECLARE(FXSingleEventThread)
37 
38 private:
40 
41 private:
44 
45 public:
46  enum {
48  };
49 
50 public:
51  long onThreadSignal(FXObject*, FXSelector, void*);
52  long onThreadEvent(FXObject*, FXSelector, void*);
53 
54 public:
56 
57  void signal();
58 
59  void signal(FXuint seltype);
60 
61  virtual FXint run() {
62  return 0;
63  }
64 
65  virtual ~FXSingleEventThread();
66 
67  static void sleep(long ms);
68 
69 private:
70  FXApp* myApp;
72 
73 protected:
75 };
76 
77 
78 #endif
MFXInterThreadEventClient * myClient
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:300
FXEX::FXThreadEventHandle event
long onThreadEvent(FXObject *, FXSelector, void *)
static void sleep(long ms)
FXSingleEventThread & operator=(const FXSingleEventThread &)
long onThreadSignal(FXObject *, FXSelector, void *)