1 #ifndef EVENTFILTER_PROCESSOR_SUB_PROCESS_H
2 #define EVENTFILTER_PROCESSOR_SUB_PROCESS_H
10 #include <boost/shared_ptr.hpp>
82 if(isMonitor)
return mqm_->post(ptr);
else return mqs_->post(ptr);
88 if(isMonitor)
return mqm_->rcv(ptr);
else return mqs_->rcv(ptr);
95 return mqm_->rcvNonBlocking(ptr);
97 return mqs_->rcvNonBlocking(ptr);
137 boost::shared_ptr<MasterQueue>
mqm_;
138 boost::shared_ptr<MasterQueue>
mqs_;
unsigned long rcvSlave(MsgBuf &ptr, bool isMonitor)
unsigned long rcv(MsgBuf &ptr, bool isMonitor)
std::string const & reasonForFailed() const
void setReasonForFailed(std::string r)
void setParams(struct prg *p)
SubProcess(int ind, pid_t pid)
boost::shared_ptr< MasterQueue > mqs_
unsigned long rcvNonBlocking(MsgBuf &ptr)
int post(MsgBuf &ptr, bool isMonitor)
bool inInconsistentState() const
static const unsigned int monitor_queue_offset_
unsigned long rcvSlaveNonBlocking(MsgBuf &ptr, bool isMonitor)
void setReportedInconsistent()
int postSlave(MsgBuf &ptr, bool isMonitor)
SubProcess(const SubProcess &b)
unsigned int save_scalers_
int controlQueueOccupancy()
pid_t queuePidOfLastReceive()
SubProcess & operator=(const SubProcess &b)
unsigned long rcv(MsgBuf &ptr)
std::string reasonForFailed_
unsigned long rcvNonBlocking(MsgBuf &ptr, bool isMonitor)
pid_t queuePidOfLastSend()
unsigned int restart_count_
unsigned int & restartCount()
boost::shared_ptr< MasterQueue > mqm_
bool reported_inconsistent_