Ignore:
Timestamp:
01/02/07 01:44:59 (17 years ago)
Author:
mattausch
Message:

worked on preprocessor with and without qt and threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtPreprocessorThread.h

    r1867 r1926  
    22#define __QT_PREPROCESSOR_THREAD_H 
    33 
    4 #ifndef NO_QT 
     4#ifdef USE_QT 
     5 
    56#include <QThread> 
    67#include "PreprocessorThread.h" 
     
    1314{ 
    1415public: 
    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   } 
     16        QtPreprocessorThread(Preprocessor *p, QObject *parent = 0); 
     17        ~QtPreprocessorThread(); 
    2418 
    25   // This function has to be defined by the thread library used... 
    26   virtual int GetCurrentThreadId() const; 
     19        void InitThread() { 
     20                PreprocessorThread::InitThread(); 
     21        } 
     22        void RunThread() { 
     23                start(QThread::LowPriority); 
     24        } 
    2725 
    28    
     26        // This function has to be defined by the thread library used... 
     27        virtual int GetCurrentThreadId() const; 
     28 
    2929protected: 
    30   void run() { 
    31         Main(); 
    32   } 
     30        void run() { 
     31                Main(); 
     32        } 
    3333}; 
    3434 
    3535} 
     36 
    3637#endif 
    3738#endif 
Note: See TracChangeset for help on using the changeset viewer.