Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
DFInterface.hh
Go to the documentation of this file.
1 #ifndef DFINTERFACE_HH
2 #define DFINTERFACE_HH
3 
4 #include <boost/atomic.hpp>
5 #include "recipients_handler.hh"
7 
8 /**
9  * \author cpellegrino
10  */
11 
13 {
14  boost::atomic<bool> status;
15 
17 
19 
20  public:
21 
23  :
24  m_recipients(recipients),
25  m_farm(FF)
26  {
27  status = true;
28  }
29 
30  void operator ()();
31 
32  void stop()
33  {
34  status = false;
35  }
36 
37  bool isRunning()
38  {
39  return status.load();
40  }
41 };
42 
43 #endif // DFINTERFACE_HH
FrameFarm & m_farm
Definition: DFInterface.hh:18
void stop()
Definition: DFInterface.hh:32
boost::atomic< bool > status
Definition: DFInterface.hh:14
bool isRunning()
Definition: DFInterface.hh:37
void operator()()
Definition: DFInterface.cc:8
DFInterface(FrameFarm &FF, RecipientsHandler &recipients)
Definition: DFInterface.hh:22
RecipientsHandler & m_recipients
Definition: DFInterface.hh:16