hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Thread.hpp
Go to the documentation of this file.
1 
14 #ifndef THREAD
15 #define THREAD
16 
17 #include <Poco/Thread.h>
20 #include <Poco/Runnable.h>
21 
22 namespace HCE {
23 namespace Utils {
26  class Thread : public Poco::Runnable {
27  private:
28  Poco::Thread _ownThread;
29  protected:
30  bool _exitFlag;
31  public:
32  Thread ();
33  virtual ~Thread();
34  public:
35  bool isRunning ();
36  void start ();
37  void stop ();
38  void join ();
39  public:
41  virtual void run () = 0;
42  };
43 }
44 }
45 
46 #endif