source: GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtPreprocessorThread.h @ 2657

Revision 2657, 690 bytes checked in by mattausch, 16 years ago (diff)
  • 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
9namespace GtpVisibilityPreprocessor {
10
11class Preprocessor;
12
13class QtPreprocessorThread: public PreprocessorThread, public QThread
14{
15public:
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
29protected:
30        void run() {
31                Main();
32        }
33};
34
35}
36
37#endif
38//#endif
Note: See TracBrowser for help on using the repository browser.