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