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