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

Revision 1457, 718 bytes checked in by bittner, 18 years ago (diff)

thread 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
37
38void BoostPreprocessorThread::RunThread()
39{
40        Main();
41  //mThread->join();
42}
43
44}
Note: See TracBrowser for help on using the repository browser.