diff options
author | zhangw <zhangw@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-15 23:26:37 +0000 |
---|---|---|
committer | zhangw <zhangw@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-15 23:26:37 +0000 |
commit | 54191a377b67a851dc03c754a23cb8aaca6b18b2 (patch) | |
tree | 3ecfcb7e0be56c06857e3faf607c85abb2988120 /TAO/tao/LF_Connect_Strategy.h | |
parent | a6b6f9642d622fb9e274ef1e34f3e848ed3ae9dc (diff) | |
download | ATCD-54191a377b67a851dc03c754a23cb8aaca6b18b2.tar.gz |
Creating a branch of ACE+TAO+CIAO for OCI RT 9734
Diffstat (limited to 'TAO/tao/LF_Connect_Strategy.h')
-rw-r--r-- | TAO/tao/LF_Connect_Strategy.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/TAO/tao/LF_Connect_Strategy.h b/TAO/tao/LF_Connect_Strategy.h new file mode 100644 index 00000000000..35e6e514046 --- /dev/null +++ b/TAO/tao/LF_Connect_Strategy.h @@ -0,0 +1,67 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file LF_Connect_Strategy.h + * + * $Id$ + * + * @author Balachandran Natarajan <bala@cs.wustl.edu> + */ +//============================================================================= + +#ifndef TAO_LF_CONNECT_STRATEGY_H +#define TAO_LF_CONNECT_STRATEGY_H + +#include /**/ "ace/pre.h" + +#include "tao/Connect_Strategy.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL +class ACE_Time_Value; +class ACE_Synch_Options; +ACE_END_VERSIONED_NAMESPACE_DECL + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +class TAO_LF_Event; + +/** + * @class TAO_LF_Connect_Strategy + * + * @brief Concrete implementation of a connect strategy that waits on + * the leader-follower during asynch connects + */ + +class TAO_Export TAO_LF_Connect_Strategy : public TAO_Connect_Strategy +{ +public: + /// Constructor + TAO_LF_Connect_Strategy (TAO_ORB_Core *orb); + + /// Destructor + ~TAO_LF_Connect_Strategy (void); + + /* + * Concrete implementation for this class. Please see + * Connect_Strategy.h for details + */ + virtual void synch_options (ACE_Time_Value *val, + ACE_Synch_Options &opt); + +protected: + virtual int wait_i (TAO_LF_Event *ev, + TAO_Transport *t, + ACE_Time_Value *val); + +}; + +TAO_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif /*TAO_LF_CONNECT_STRATEGY_H*/ |