PSQt/include/ThreadTimer.h

Go to the documentation of this file.
00001 //--------------------------
00002 
00003 #ifndef THREADTIMER_H
00004 #define THREADTIMER_H
00005 
00006 #include <QThread>
00007 
00008 namespace PSQt {
00009 
00010 /**
00011  *  @ingroup PSQt
00012  * 
00013  *  @brief Tread-worker, inherits from QThread
00014  * 
00015  *  @code
00016  *  @endcode
00017  *
00018  *  This software was developed for the LCLS project.  If you use all or 
00019  *  part of it, please give an appropriate acknowledgment.
00020  *
00021  *  @see ../app/geo.cpp
00022  *
00023  *  @version $Id: ThreadTimer.h 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU $
00024  *
00025  *  @author Mikhail Dubrovin
00026  */
00027 
00028 //--------------------------
00029 
00030 class ThreadTimer : public QThread
00031 {
00032   Q_OBJECT
00033 
00034  public:
00035   ThreadTimer(QObject *parent=0, unsigned dt_sec=1, bool pbits=0);
00036 
00037  protected:
00038     void run();
00039 
00040  private:
00041     unsigned m_thread_number;
00042     unsigned m_count;
00043     unsigned m_dt_sec;
00044     bool     m_pbits;
00045 };
00046 
00047 //--------------------------
00048 
00049 } // namespace PSQt
00050 
00051 #endif // THREADTIMER_H
00052 
00053 //--------------------------
00054 
00055 
00056 
00057 

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7