00001 // -*- C++ -*- 00002 // 00003 // Method_Request_Updates_T.inl,v 1.6 2006/03/14 06:14:34 jtc Exp 00004 00005 #include "tao/debug.h" 00006 #include "orbsvcs/Notify/Peer.h" 00007 00008 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00009 00010 template <class SEQ, class PROXY, class SEQ_PARAM, class PROXY_PARAM> ACE_INLINE int 00011 TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, SEQ_PARAM, PROXY_PARAM>::execute_i (ACE_ENV_SINGLE_ARG_DECL) 00012 { 00013 if (this->proxy_->has_shutdown ()) 00014 return 0; // If we were shutdown while waiting in the queue, return with no action. 00015 00016 ACE_TRY 00017 { 00018 TAO_Notify_Peer* peer = this->proxy_->peer(); 00019 00020 if (peer != 0) 00021 { 00022 peer->dispatch_updates (this->added_, this->removed_ ACE_ENV_ARG_PARAMETER); 00023 ACE_TRY_CHECK; 00024 } 00025 } 00026 ACE_CATCHANY 00027 { 00028 if (TAO_debug_level > 0) 00029 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "TAO_Notify_Method_Request_Updates::execute error sending updates\n "); 00030 } 00031 ACE_ENDTRY; 00032 00033 return 0; 00034 } 00035 00036 TAO_END_VERSIONED_NAMESPACE_DECL