source: GTP/trunk/Lib/Vis/Preprocessing/src/BoostPreprocessorThread.cpp @ 2575

Revision 2575, 972 bytes checked in by bittner, 16 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
10namespace GtpVisibilityPreprocessor {
11
12
13#ifdef THREADS1
14 
15BoostPreprocessorThread::BoostPreprocessorThread(Preprocessor *p):
16PreprocessorThread(p), mThread(NULL)
17{
18}
19
20
21void BoostPreprocessorThread::operator()()
22{
23        Main();
24}
25
26
27
28
29BoostPreprocessorThread::~BoostPreprocessorThread()
30{
31  cerr << "Boost Preprocessor thread destructor ... \n";
32  DEL_PTR(mThread);
33}
34
35
36void BoostPreprocessorThread::InitThread()
37{
38  mThread = new boost::thread(*this);
39 
40  PreprocessorThread::InitThread();
41}
42
43int
44BoostPreprocessorThread::GetCurrentThreadId() const
45{
46  // $$ temporary implementation
47  return 0;
48}
49
50
51void 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.