Revision 1457,
519 bytes
checked in by bittner, 18 years ago
(diff) |
thread updates
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[1387] | 1 | #ifndef __QT_PREPROCESSOR_THREAD_H
|
---|
| 2 | #define __QT_PREPROCESSOR_THREAD_H
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | #include <QThread>
|
---|
| 6 | #include "PreprocessorThread.h"
|
---|
| 7 |
|
---|
| 8 | namespace GtpVisibilityPreprocessor {
|
---|
| 9 |
|
---|
| 10 | class Preprocessor;
|
---|
| 11 |
|
---|
| 12 | class QtPreprocessorThread : public PreprocessorThread, QThread
|
---|
| 13 | {
|
---|
| 14 | public:
|
---|
| 15 | QtPreprocessorThread(Preprocessor *p, QObject *parent = 0);
|
---|
| 16 | ~QtPreprocessorThread();
|
---|
| 17 |
|
---|
| 18 | void InitThread() {}
|
---|
| 19 | void RunThread() {
|
---|
| 20 | start(QThread::LowPriority);
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | protected:
|
---|
| 25 | void run() {
|
---|
| 26 | Main();
|
---|
| 27 | }
|
---|
| 28 | };
|
---|
| 29 |
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.