Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

ztt::dcs::WatchDog Class Reference

#include <WatchDog.hpp>

List of all members.


Detailed Description

The WatchDog class is used to detect any timeouts in the command channels. When a timeout occurs the WatchDog notifies the PVSS.

Date:
2006-11-09
Author:
Benjamin Schockert


Public Member Functions

 WatchDog (const char *channelName, AnswerStruct *pAnswerStr, bool *commandBusy)
virtual int svc (void)
void wakeUp (void)
void processTimeOut (ACE_Message_Block *mb)
void setCommandHandler (FedCommand *fedCom)


Constructor & Destructor Documentation

ztt::dcs::WatchDog::WatchDog const char *  channelName,
AnswerStruct *  pAnswerStr,
bool *  commandBusy
[inline]
 

the watchDog constructor initalize all required values.

Parameters:
channelName specify the name of the command channel
pAnswerStruct points to the list of ack ids. Is required to delete after a timeout the corresponding entry in the list.


Member Function Documentation

virtual int ztt::dcs::WatchDog::svc void   )  [virtual]
 

svc is the entry point of the threads.

void ztt::dcs::WatchDog::wakeUp void   )  [inline]
 

wakeUp notify the sleeping thread that the answer has arrived.


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 02:54:34 2007 for InterComLayer by doxygen 1.3.5