EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Thread.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_CORE_THREAD_HPP_
2 #define ORG_EEROS_CORE_THREAD_HPP_
3 
6 
7 #include <thread>
8 #include <functional>
9 #include <string>
10 
11 namespace eeros {
12 
13  class Thread {
14 
15  public:
16  Thread();
17  virtual ~Thread();
18 
19  virtual std::string getId() const;
20  virtual void join();
21 
22  protected:
23  Thread(std::function<void ()> t);
24 
25  virtual void run();
26 
27  std::thread t;
29  };
30 };
31 
32 #endif // ORG_EEROS_CORE_THREAD_HPP_
eeros::logger::Logger< eeros::logger::LogWriter > log
Definition: Thread.hpp:28
virtual std::string getId() const
virtual ~Thread()
Definition: Thread.hpp:13
virtual void run()
std::thread t
Definition: Thread.hpp:27
Thread()
Definition: Thread.cpp:6
virtual void join()