Revision 2575,
972 bytes
checked in by bittner, 17 years ago
(diff) |
big merge: preparation for havran ray caster, check if everything works
|
Rev | Line | |
---|
[1146] | 1 | #include "BoostPreprocessorThread.h"
|
---|
| 2 | #include "Camera.h"
|
---|
| 3 | #include "KdTree.h"
|
---|
| 4 | #include "SceneGraph.h"
|
---|
| 5 | #include "Preprocessor.h"
|
---|
| 6 |
|
---|
[2575] | 7 | // ??????????????? commented by VH ????????????
|
---|
| 8 | //#include <boost/thread/thread.hpp>
|
---|
| 9 |
|
---|
[1146] | 10 | namespace GtpVisibilityPreprocessor {
|
---|
| 11 |
|
---|
| 12 |
|
---|
[2575] | 13 | #ifdef THREADS1
|
---|
| 14 |
|
---|
[1146] | 15 | BoostPreprocessorThread::BoostPreprocessorThread(Preprocessor *p):
|
---|
| 16 | PreprocessorThread(p), mThread(NULL)
|
---|
| 17 | {
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | void BoostPreprocessorThread::operator()()
|
---|
| 22 | {
|
---|
| 23 | Main();
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | BoostPreprocessorThread::~BoostPreprocessorThread()
|
---|
| 30 | {
|
---|
[1199] | 31 | cerr << "Boost Preprocessor thread destructor ... \n";
|
---|
| 32 | DEL_PTR(mThread);
|
---|
[1146] | 33 | }
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | void BoostPreprocessorThread::InitThread()
|
---|
| 37 | {
|
---|
[1199] | 38 | mThread = new boost::thread(*this);
|
---|
[1867] | 39 |
|
---|
| 40 | PreprocessorThread::InitThread();
|
---|
[1146] | 41 | }
|
---|
| 42 |
|
---|
[1867] | 43 | int
|
---|
| 44 | BoostPreprocessorThread::GetCurrentThreadId() const
|
---|
| 45 | {
|
---|
| 46 | // $$ temporary implementation
|
---|
| 47 | return 0;
|
---|
| 48 | }
|
---|
[1146] | 49 |
|
---|
[1867] | 50 |
|
---|
[1146] | 51 | void BoostPreprocessorThread::RunThread()
|
---|
| 52 | {
|
---|
[1404] | 53 | Main();
|
---|
| 54 | //mThread->join();
|
---|
[1146] | 55 | }
|
---|
[1199] | 56 |
|
---|
[2575] | 57 | #endif // THREADS1
|
---|
| 58 |
|
---|
| 59 |
|
---|
[1146] | 60 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.