diff options
Diffstat (limited to 'TAO/tests/NestedUpcall/reactor_i.cpp')
-rw-r--r-- | TAO/tests/NestedUpcall/reactor_i.cpp | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/TAO/tests/NestedUpcall/reactor_i.cpp b/TAO/tests/NestedUpcall/reactor_i.cpp deleted file mode 100644 index cb0010f82de..00000000000 --- a/TAO/tests/NestedUpcall/reactor_i.cpp +++ /dev/null @@ -1,78 +0,0 @@ -// $Id$ - -#include "tao/corba.h" -#include "reactor_i.h" - -// CTOR -Reactor_i::Reactor_i (void) -{ -} - -// DTOR -Reactor_i::~Reactor_i (void) -{ -} - -// register...with nothing -CORBA::Long -Reactor_i::register_handler (EventHandler_ptr eh, - CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) BEGIN Reactor_i::register_handler ()\n")); - - CORBA::Long r = 0; - - TAO_TRY - { - r = eh->peer (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("getting peer"); - } - TAO_ENDTRY; - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) got this value from peer: %d\n", - r)); - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) END Reactor_i::register_handler ()\n")); - return 0; -} - -void -Reactor_i::set_value (CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) doing Reactor_i::set_value()\n")); -} - -CORBA::UShort -Reactor_i::decrement (EventHandler_ptr eh, - CORBA::UShort num, - CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, "%{%I(%P|%t) Reactor::decrement (%d)%$", num)); - - CORBA::UShort ret; - if (--num <= 0) - ret = 0; - else - { - ACE_DEBUG ((LM_DEBUG, "(%P|%t) Reactor::decrement() invoking EventHandler::decrement(%d)%$", num)); - Reactor_var me = _this (env); - ret = eh->decrement (me.in (), num, env); - } - ACE_DEBUG ((LM_DEBUG, "%}(%P|%t) Reactor::decrement() returning %d\n", ret)); - return ret; -} - -void -Reactor_i::stop (CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, "(%P|%t) stopping.\n")); - TAO_ORB_Core_instance ()->orb ()->shutdown (); -} |