00001 // $Id: ORB_Core_TSS_Resources.cpp 69150 2005-11-02 07:13:04Z ossama $ 00002 00003 #include "tao/ORB_Core_TSS_Resources.h" 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 TAO_ORB_Core_TSS_Resources::TAO_ORB_Core_TSS_Resources (void) 00008 : event_loop_thread_ (0) 00009 , client_leader_thread_ (0) 00010 , lane_ (0) 00011 , ts_objects_ () 00012 , upcalls_temporarily_suspended_on_this_thread_ (false) 00013 , orb_core_ (0) 00014 { 00015 } 00016 00017 TAO_ORB_Core_TSS_Resources::~TAO_ORB_Core_TSS_Resources (void) 00018 { 00019 //@@ This is broken on platforms that use TSS emulation since this 00020 // destructor is invoked after the ORB. Since we're under 00021 // pressure to release a beta, we'll have to leak the TSS objects 00022 // stores in the <ts_objects_> array. However, the only service 00023 // known to currently use this array is the SSLIOP pluggable 00024 // protocol. Fortunately, it registeres a null cleanup function 00025 // so we're not leaking anything yet. We *do* need to fix this 00026 // before other services start to use this array. 00027 // -Ossama 00028 // if (this->orb_core_ != 0) 00029 // this->orb_core_->tss_cleanup_funcs ()->cleanup (this->ts_objects_); 00030 } 00031 00032 TAO_END_VERSIONED_NAMESPACE_DECL