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