Changeset 3240 for code/branches/netp6/src/core/Thread.h
- Timestamp:
- Jun 28, 2009, 3:04:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp6/src/core/Thread.h
r3231 r3240 32 32 #include "CorePrereqs.h" 33 33 34 namespace boost{ 35 class recursive_mutex; 36 } 37 34 38 namespace orxonox 35 39 { … … 40 44 virtual ~Thread(); 41 45 42 inline bool isWorking() { return this->isWorking_; }46 bool isWorking(); 43 47 void waitUntilFinished(); 44 bool evaluate Functor( Functor* functor );48 bool evaluateExecutor( Executor* executor ); 45 49 46 50 private: 47 51 void threadLoop(); 48 52 49 Functor* functor_;53 Executor* executor_; 50 54 bool isWorking_; 51 55 bool stopThread_; 52 56 boost::thread* workerThread_; 53 boost::mutex* communicationMutex_; 57 boost::mutex* executorMutex_; 58 boost::mutex* isWorkingMutex_; 59 boost::mutex* stopThreadMutex_; 54 60 }; 55 61
Note: See TracChangeset
for help on using the changeset viewer.