source: GTP/trunk/Lib/Vis/Preprocessing/src/PreprocessorThread.h @ 1867

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

merge, global lines, rss sampling updates

  • Property svn:executable set to *
Line 
1#ifndef __PREPROCESSOR_THREAD_H
2#define __PREPROCESSOR_THREAD_H
3
4#include <vector>
5using namespace std;
6namespace GtpVisibilityPreprocessor
7{
8
9class Preprocessor;
10
11
12/** This class represents a preprocessor thread.
13*/
14class PreprocessorThread
15{
16public:
17  static vector<PreprocessorThread *> sThreads;
18 
19  PreprocessorThread(Preprocessor *p);
20  virtual ~PreprocessorThread();
21 
22  virtual void InitThread() {
23        sThreads.push_back(this);
24  }
25  virtual void RunThread() {}
26 
27  virtual void Main();
28
29  // This function has to be defined by the thread library used...
30  virtual int GetCurrentThreadId() const = 0;
31
32protected:
33 
34  Preprocessor *mPreprocessor;
35};
36
37/*class PreprocessorThreadFactory
38{
39        PreprocessorThread *Create(const int threadType);
40}*/
41
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.