diff options
Diffstat (limited to 'TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp')
-rw-r--r-- | TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp deleted file mode 100644 index 31585a94528..00000000000 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp +++ /dev/null @@ -1,60 +0,0 @@ -// $Id$ - -#include "test_i.h" -#include "ace/OS_NS_unistd.h" - -ACE_RCSID(Dynamic, test_i, "$Id$") - -Visual_i::Visual_i (CORBA::ORB_ptr orb) - : orb_ (CORBA::ORB::_duplicate (orb)) -{ -} - // ctor - -void -Visual_i::normal (CORBA::Long - ACE_ENV_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - // ACE_DEBUG ((LM_DEBUG, "Visual::normal called with %d\n", arg)); -} - -CORBA::Long -Visual_i::calculate (CORBA::Long one, - CORBA::Long two - ACE_ENV_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - // ACE_DEBUG ((LM_DEBUG, "Visual::calculate\n")); - return (one + two); -} - -void -Visual_i::user (ACE_ENV_SINGLE_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException,Test_Interceptors::Silly)) -{ - // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwning Silly\n")); - ACE_THROW (Test_Interceptors::Silly ()); -} - -void -Visual_i::system (ACE_ENV_SINGLE_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing INV_OBJREF\n")); - ACE_THROW (CORBA::INV_OBJREF ()); -} - -void -Visual_i::shutdown (ACE_ENV_SINGLE_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK; - - // Give the client thread time to return from the collocated - // call to this method before shutting down the ORB. We sleep - // to avoid BAD_INV_ORDER exceptions on fast dual processor machines. - ACE_OS::sleep(1); - this->orb_->shutdown (); -} |