SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FXSingleEventThread.h
Go to the documentation of this file.
1 #ifndef FXSingleEventThread_h
2 #define FXSingleEventThread_h
3 
4 
5 // ===========================================================================
6 // included modules
7 // ===========================================================================
8 #ifdef _MSC_VER
9 #include <windows_config.h>
10 #else
11 #include <config.h>
12 #endif
13 
14 #include <fx.h>
15 #include <FXThread.h>
16 #include "fxexdefs.h"
17 
19 
20 class FXSingleEventThread : public FXObject, public FXThread {
21  FXDECLARE(FXSingleEventThread)
22 
23 private:
25 
26 private:
29 
30 public:
31  enum {
33  };
34 
35 public:
36  long onThreadSignal(FXObject*, FXSelector, void*);
37  long onThreadEvent(FXObject*, FXSelector, void*);
38 
39 public:
41 
42  void signal();
43 
44  void signal(FXuint seltype);
45 
46  virtual FXint run() {
47  return 0;
48  }
49 
50  virtual ~FXSingleEventThread();
51 
52  static void sleep(long ms);
53 
54 private:
55  FXApp* myApp;
57 
58 protected:
60 };
61 
62 
63 #endif