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

RevLine 
[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]10namespace GtpVisibilityPreprocessor {
11
12
[2575]13#ifdef THREADS1
14 
[1146]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{
[1199]31  cerr << "Boost Preprocessor thread destructor ... \n";
32  DEL_PTR(mThread);
[1146]33}
34
35
36void BoostPreprocessorThread::InitThread()
37{
[1199]38  mThread = new boost::thread(*this);
[1867]39 
40  PreprocessorThread::InitThread();
[1146]41}
42
[1867]43int
44BoostPreprocessorThread::GetCurrentThreadId() const
45{
46  // $$ temporary implementation
47  return 0;
48}
[1146]49
[1867]50
[1146]51void 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.