ATLAS Offline Software
VP1LocalEvtRetriever.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef VP1LocalEvtRetriever_h
6 #define VP1LocalEvtRetriever_h
7 
8 #include <QThread>
9 #include <QString>
10 #include <QMutex>
11 
13 class QTimer;
14 
15 class VP1LocalEvtRetriever : public QThread
16 {
17  Q_OBJECT
18 
19  public:
21  ,QString
22  ,QObject* parent = 0);
24 
25  void setSourceDir(QString);
26 
27  public Q_SLOTS:
29 
30  protected:
31  void run();
32 
33  private:
34  void updateLocalDir(); // Called by updateLocalDirFromSource() and by setSourceDir(QString)
35  // Does the actual work. Has been introduced in order to avoid mutex deadlocks
36 
38  QString m_sourcedir;
39  QTimer* m_timer;
40  QMutex m_mutex;
41 };
42 
43 #endif
VP1LocalEvtRetriever::VP1LocalEvtRetriever
VP1LocalEvtRetriever(VP1AvailEvtsLocalDir *, QString, QObject *parent=0)
Definition: VP1LocalEvtRetriever.cxx:13
VP1LocalEvtRetriever::updateLocalDirFromSource
void updateLocalDirFromSource()
Definition: VP1LocalEvtRetriever.cxx:37
VP1LocalEvtRetriever::updateLocalDir
void updateLocalDir()
Definition: VP1LocalEvtRetriever.cxx:43
VP1LocalEvtRetriever::m_availEvts
VP1AvailEvtsLocalDir * m_availEvts
Definition: VP1LocalEvtRetriever.h:37
VP1LocalEvtRetriever::run
void run()
Definition: VP1LocalEvtRetriever.cxx:28
VP1LocalEvtRetriever::m_mutex
QMutex m_mutex
Definition: VP1LocalEvtRetriever.h:40
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1LocalEvtRetriever::~VP1LocalEvtRetriever
~VP1LocalEvtRetriever()
Definition: VP1LocalEvtRetriever.cxx:23
VP1LocalEvtRetriever::m_timer
QTimer * m_timer
Definition: VP1LocalEvtRetriever.h:39
VP1LocalEvtRetriever
Definition: VP1LocalEvtRetriever.h:16
VP1LocalEvtRetriever::setSourceDir
void setSourceDir(QString)
Definition: VP1LocalEvtRetriever.cxx:109
VP1AvailEvtsLocalDir
Definition: VP1AvailEvtsLocalDir.h:24
VP1LocalEvtRetriever::m_sourcedir
QString m_sourcedir
Definition: VP1LocalEvtRetriever.h:38