Revision 1867,
806 bytes
checked in by bittner, 18 years ago
(diff) |
merge, global lines, rss sampling updates
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[492] | 1 | #ifndef __PREPROCESSOR_THREAD_H
|
---|
| 2 | #define __PREPROCESSOR_THREAD_H
|
---|
| 3 |
|
---|
[1867] | 4 | #include <vector>
|
---|
| 5 | using namespace std;
|
---|
[1146] | 6 | namespace GtpVisibilityPreprocessor
|
---|
| 7 | {
|
---|
| 8 |
|
---|
[492] | 9 | class Preprocessor;
|
---|
| 10 |
|
---|
[1867] | 11 |
|
---|
[1145] | 12 | /** This class represents a preprocessor thread.
|
---|
| 13 | */
|
---|
[1146] | 14 | class PreprocessorThread
|
---|
[492] | 15 | {
|
---|
| 16 | public:
|
---|
[1867] | 17 | static vector<PreprocessorThread *> sThreads;
|
---|
| 18 |
|
---|
[1387] | 19 | PreprocessorThread(Preprocessor *p);
|
---|
| 20 | virtual ~PreprocessorThread();
|
---|
| 21 |
|
---|
[1867] | 22 | virtual void InitThread() {
|
---|
| 23 | sThreads.push_back(this);
|
---|
| 24 | }
|
---|
[1457] | 25 | virtual void RunThread() {}
|
---|
| 26 |
|
---|
| 27 | virtual void Main();
|
---|
[1867] | 28 |
|
---|
| 29 | // This function has to be defined by the thread library used...
|
---|
| 30 | virtual int GetCurrentThreadId() const = 0;
|
---|
| 31 |
|
---|
[1146] | 32 | protected:
|
---|
[1387] | 33 |
|
---|
| 34 | Preprocessor *mPreprocessor;
|
---|
[492] | 35 | };
|
---|
| 36 |
|
---|
[1154] | 37 | /*class PreprocessorThreadFactory
|
---|
| 38 | {
|
---|
| 39 | PreprocessorThread *Create(const int threadType);
|
---|
| 40 | }*/
|
---|
| 41 |
|
---|
[860] | 42 | }
|
---|
[492] | 43 |
|
---|
| 44 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.