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 /****************************************************************************/
9 //
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12 // Copyright (C) 2004-2014 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 
23 #ifndef FXSingleEventThread_h
24 #define FXSingleEventThread_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <fx.h>
37 #include <FXThread.h>
38 #include "fxexdefs.h"
39 
41 
42 class FXSingleEventThread : public FXObject, public FXThread {
43  FXDECLARE(FXSingleEventThread)
44 
45 private:
47 
48 private:
51 
52 public:
53  enum {
55  };
56 
57 public:
58  long onThreadSignal(FXObject*, FXSelector, void*);
59  long onThreadEvent(FXObject*, FXSelector, void*);
60 
61 public:
63 
64  void signal();
65 
66  void signal(FXuint seltype);
67 
68  virtual FXint run() {
69  return 0;
70  }
71 
72  virtual ~FXSingleEventThread();
73 
74  static void sleep(long ms);
75 
76 private:
77  FXApp* myApp;
79 
80 protected:
82 };
83 
84 
85 #endif
MFXInterThreadEventClient * myClient
FXInputHandle * FXThreadEventHandle
Definition: fxexdefs.h:307
FXEX::FXThreadEventHandle event
long onThreadEvent(FXObject *, FXSelector, void *)
static void sleep(long ms)
FXSingleEventThread & operator=(const FXSingleEventThread &)
long onThreadSignal(FXObject *, FXSelector, void *)