Revision 1867,
696 bytes
checked in by bittner, 18 years ago
(diff) |
merge, global lines, rss sampling updates
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #ifndef __QT_PREPROCESSOR_THREAD_H
|
---|
2 | #define __QT_PREPROCESSOR_THREAD_H
|
---|
3 |
|
---|
4 | #ifndef NO_QT
|
---|
5 | #include <QThread>
|
---|
6 | #include "PreprocessorThread.h"
|
---|
7 |
|
---|
8 | namespace GtpVisibilityPreprocessor {
|
---|
9 |
|
---|
10 | class Preprocessor;
|
---|
11 |
|
---|
12 | class QtPreprocessorThread : public PreprocessorThread, public QThread
|
---|
13 | {
|
---|
14 | public:
|
---|
15 | QtPreprocessorThread(Preprocessor *p, QObject *parent = 0);
|
---|
16 | ~QtPreprocessorThread();
|
---|
17 |
|
---|
18 | void InitThread() {
|
---|
19 | PreprocessorThread::InitThread();
|
---|
20 | }
|
---|
21 | void RunThread() {
|
---|
22 | start(QThread::LowPriority);
|
---|
23 | }
|
---|
24 |
|
---|
25 | // This function has to be defined by the thread library used...
|
---|
26 | virtual int GetCurrentThreadId() const;
|
---|
27 |
|
---|
28 |
|
---|
29 | protected:
|
---|
30 | void run() {
|
---|
31 | Main();
|
---|
32 | }
|
---|
33 | };
|
---|
34 |
|
---|
35 | }
|
---|
36 | #endif
|
---|
37 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.