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