summaryrefslogtreecommitdiff
path: root/protocols/ace/TMCast/FaultDetector.hpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-11-09 20:41:18 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-11-09 20:41:18 +0000
commite6745a8a2bfecafcda416cecff6d89a308f6e88f (patch)
tree9a1eb75c5bdad86d3ca98c7541ff531e441925cf /protocols/ace/TMCast/FaultDetector.hpp
parent1382cb3afa9d44bb528b79cd43d4eec93d3c660f (diff)
downloadATCD-swapping.tar.gz
This commit was manufactured by cvs2svn to create branch 'swapping'.swapping
Diffstat (limited to 'protocols/ace/TMCast/FaultDetector.hpp')
-rw-r--r--protocols/ace/TMCast/FaultDetector.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/protocols/ace/TMCast/FaultDetector.hpp b/protocols/ace/TMCast/FaultDetector.hpp
deleted file mode 100644
index ba476cbd367..00000000000
--- a/protocols/ace/TMCast/FaultDetector.hpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// file : TMCast/FaultDetector.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "Protocol.hpp"
-
-namespace TMCast
-{
- class FaultDetector
- {
- public:
- FaultDetector ()
- : silence_period_ (-1)
- {
- }
-
- public:
- class Failed {};
-
-
- void
- insync ()
- {
- silence_period_ = 0;
- }
-
- void
- outsync ()
- {
- if (++silence_period_ >= Protocol::FATAL_SILENCE_FRAME)
- {
- // cerr << "Silence period has been passed." << endl;
- // cerr << "Decalring the node failed." << endl;
- throw Failed ();
- }
- }
-
- private:
- short silence_period_;
- };
-}