Rev 1309 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1309 | Rev 1317 | ||
|---|---|---|---|
| Line 9... | Line 9... | ||
| 9 | #define THREAD_H_ |
9 | #define THREAD_H_ |
| 10 | 10 | ||
| 11 | #include <boost/thread.hpp> |
11 | #include <boost/thread.hpp> |
| 12 | 12 | ||
| 13 | namespace atom { |
13 | namespace atom { |
| 14 | namespace |
14 | namespace thread { |
| 15 | 15 | ||
| 16 | class Thread |
16 | class Thread |
| 17 | { |
17 | { |
| 18 | public: |
18 | public: |
| 19 | Thread(); |
19 | Thread(); |
| Line 27... | Line 27... | ||
| 27 | 27 | ||
| 28 | protected: |
28 | protected: |
| 29 | virtual void run(); |
29 | virtual void run(); |
| 30 | 30 | ||
| 31 | private: |
31 | private: |
| 32 | boost::thread |
32 | boost::thread myThread; |
| 33 | bool |
33 | bool myIsRunning; |
| 34 | 34 | ||
| 35 | void runBase(); |
35 | void runBase(); |
| 36 | }; |
36 | }; |
| 37 | 37 | ||
| 38 | } |
38 | } |