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>
|
---|
5 | using namespace std;
|
---|
6 | namespace GtpVisibilityPreprocessor
|
---|
7 | {
|
---|
8 |
|
---|
9 | class Preprocessor;
|
---|
10 |
|
---|
11 |
|
---|
12 | /** This class represents a preprocessor thread.
|
---|
13 | */
|
---|
14 | class PreprocessorThread
|
---|
15 | {
|
---|
16 | public:
|
---|
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 |
|
---|
32 | protected:
|
---|
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.