summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/tests/Bug_1551_Regression/Reply_Handler.cpp')
-rw-r--r--TAO/tests/Bug_1551_Regression/Reply_Handler.cpp92
1 files changed, 0 insertions, 92 deletions
diff --git a/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp b/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
deleted file mode 100644
index c6f274953fe..00000000000
--- a/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// $Id$
-//
-
-#include "Reply_Handler.h"
-
-ACE_RCSID(Bug_1XXX_Regression, Reply_Handler, "$Id$")
-
-Reply_Handler::Reply_Handler (
- Test::Hello_ptr hello, CORBA::ORB_ptr orb)
- : counter_(1000)
- , hello_(Test::Hello::_duplicate(hello))
- , orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-void
-Reply_Handler::short_sleep (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- check_counter(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- Test::AMI_HelloHandler_var current =
- _this(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- hello_->sendc_short_sleep(current.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void
-Reply_Handler::short_sleep_excep (
- ::Messaging::ExceptionHolder *ex
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- check_counter(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_TRY
- {
- if (ex)
- {
- ex->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- else
- {
- // Problem with the exceptionholder, instead of crashing, print
- // an error to the log, this normally shouldn't happen but when
- // there is a bug in TAO it can happen :-(
- ACE_ERROR ((LM_ERROR, "ERROR: Got nill exceptionholder\n"));
- }
- }
- ACE_CATCHANY
- {
- // Exceptions are expected and thus ignored in normal runs:
-#if 0
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "(%P|%t) Reply_Handler - caught exception:");
-#endif /* 0 */
- }
- ACE_ENDTRY;
- ACE_CHECK;
-
- Test::AMI_HelloHandler_var current =
- _this(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- hello_->sendc_short_sleep(current.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void Reply_Handler::
-check_counter(ACE_ENV_SINGLE_ARG_DECL)
-{
- long const count = --counter_;
- if(count == 0)
- {
- // ACE_DEBUG((LM_DEBUG, "(%P|%t) Shut down client thread\n"));
- orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- return;
- }
-#if 0
- if(count % 100 == 0)
- {
- ACE_DEBUG((LM_DEBUG, "(%P|%t) count = %d\n", count));
- }
-#endif /* 0 */
-}