CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMEventProcessorResources.h
Go to the documentation of this file.
1 // $Id: DQMEventProcessorResources.h,v 1.5 2011/03/07 15:31:31 mommsen Exp $
3 
4 
5 #ifndef EventFilter_StorageManager_DQMEventProcessorResources_h
6 #define EventFilter_StorageManager_DQMEventProcessorResources_h
7 
9 
10 #include "boost/thread/condition.hpp"
11 #include "boost/thread/mutex.hpp"
12 
13 namespace stor
14 {
15 
26  {
27  public:
28 
29  struct Requests
30  {
32  bool endOfRun;
34 
35  void reset();
36  };
37 
42 
47 
53  void requestConfiguration(DQMProcessingParams const&, boost::posix_time::time_duration const&);
54 
58  void requestEndOfRun();
59 
64 
70  bool getRequests(Requests&, DQMProcessingParams&, boost::posix_time::time_duration& timeoutValue);
71 
75  virtual void waitForCompletion();
76 
80  virtual bool requestsOngoing();
81 
85  void requestsDone();
86 
87 
88  private:
89 
93 
95  boost::posix_time::time_duration requestedTimeout_;
96 
97  boost::condition requestsCondition_;
98 
100  };
101 
102  typedef boost::shared_ptr<DQMEventProcessorResources> DQMEventProcessorResourcesPtr;
103 
104 } // namespace stor
105 
106 #endif // EventFilter_StorageManager_DQMEventProcessorResources_h
107 
static boost::mutex mutex
Definition: LHEProxy.cc:11
boost::posix_time::time_duration requestedTimeout_
boost::shared_ptr< DQMEventProcessorResources > DQMEventProcessorResourcesPtr
bool getRequests(Requests &, DQMProcessingParams &, boost::posix_time::time_duration &timeoutValue)
void requestConfiguration(DQMProcessingParams const &, boost::posix_time::time_duration const &)