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

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
8namespace GtpVisibilityPreprocessor {
9
10class Preprocessor;
11
12class QtPreprocessorThread : public PreprocessorThread, public QThread
13{
14public:
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 
29protected:
30  void run() {
31        Main();
32  }
33};
34
35}
36#endif
37#endif
Note: See TracBrowser for help on using the repository browser.