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

Revision 1867, 872 bytes checked in by bittner, 18 years ago (diff)

merge, global lines, rss sampling updates

Line 
1#include "BoostPreprocessorThread.h"
2#include "Camera.h"
3#include "KdTree.h"
4#include "SceneGraph.h"
5#include "Preprocessor.h"
6#include <boost/thread/thread.hpp>
7
8namespace GtpVisibilityPreprocessor {
9
10
11BoostPreprocessorThread::BoostPreprocessorThread(Preprocessor *p):
12PreprocessorThread(p), mThread(NULL)
13{
14}
15
16
17void BoostPreprocessorThread::operator()()
18{
19        Main();
20}
21
22
23
24
25BoostPreprocessorThread::~BoostPreprocessorThread()
26{
27  cerr << "Boost Preprocessor thread destructor ... \n";
28  DEL_PTR(mThread);
29}
30
31
32void BoostPreprocessorThread::InitThread()
33{
34  mThread = new boost::thread(*this);
35 
36  PreprocessorThread::InitThread();
37}
38
39int
40BoostPreprocessorThread::GetCurrentThreadId() const
41{
42  // $$ temporary implementation
43  return 0;
44}
45
46
47void BoostPreprocessorThread::RunThread()
48{
49        Main();
50  //mThread->join();
51}
52
53}
Note: See TracBrowser for help on using the repository browser.