Rev 1309 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| SVN
| RSS feed
/*
* Thread.h
*
* Created on: Apr 26, 2009
* Author: Mattias Runge
*/
#ifndef THREAD_H_
#define THREAD_H_
#include <boost/thread.hpp>
namespace atom {
namespace thread {
class Thread
{
public:
Thread();
virtual ~Thread();
void start();
void stop();
boost::thread::id getId();
bool isRunning();
protected:
virtual void run();
private:
boost::thread myThread;
bool myIsRunning;
void runBase();
};
}
}
#endif /* THREAD_H_ */