#ifndef TAO_CONNECTOR_IMPL_CPP #define TAO_CONNECTOR_IMPL_CPP #include "tao/Connector_Impl.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #if !defined(__ACE_INLINE__) #include "tao/Connector_Impl.inl" #endif /* __ACE_INLINE__ */ ACE_RCSID(tao, Connector_Impl, "$Id$") template TAO_Connect_Creation_Strategy:: TAO_Connect_Creation_Strategy (ACE_Thread_Manager* t, TAO_ORB_Core *orb_core, void *arg, CORBA::Boolean flag) : ACE_Creation_Strategy (t), orb_core_ (orb_core), arg_ (arg), lite_flag_ (flag) { } template int TAO_Connect_Creation_Strategy::make_svc_handler (SVC_HANDLER *&sh) { if (sh == 0) ACE_NEW_RETURN (sh, SVC_HANDLER (this->orb_core_, this->lite_flag_, this->arg_), -1); // Add a reference count. Why is this needed? We need this to make // sure that the connector doesnt delete this handler when we are // waiting for non-blocking connects to complete. // REFCNT: matches decr_refcount() in XXX_Connector::make_connection() sh->incr_refcount (); return 0; } //////////////////////////////////////////////////////////////// template TAO_Connect_Concurrency_Strategy:: TAO_Connect_Concurrency_Strategy (TAO_ORB_Core *orb_core) : orb_core_ (orb_core) { } template int TAO_Connect_Concurrency_Strategy:: activate_svc_handler (SVC_HANDLER *sh, void *arg) { return ACE_Concurrency_Strategy::activate_svc_handler (sh, arg); } #endif /*TAO_CONNECTOR_IMPL_CPP*/