diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-08-26 09:52:55 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-08-26 09:52:55 +0000 |
commit | e147674fbe91916fa8fd2189a9d62c091bebd27c (patch) | |
tree | 09e01f05117ff081bebb8e250aaf3781d2100612 /TAO/tao/PortableServer | |
parent | ad4a870f8f0b8aa2194a157001ed88cbf5dd45fb (diff) | |
download | ATCD-e147674fbe91916fa8fd2189a9d62c091bebd27c.tar.gz |
ChangeLogTag: Fri Aug 26 09:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PortableServer')
-rw-r--r-- | TAO/tao/PortableServer/Active_Object_Map.cpp | 217 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ImR_Client_Adapter.cpp | 8 | ||||
-rw-r--r-- | TAO/tao/PortableServer/LifespanStrategyPersistent.cpp | 1 | ||||
-rw-r--r-- | TAO/tao/PortableServer/LifespanStrategyTransient.cpp | 1 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Object_Adapter.cpp | 165 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp | 34 | ||||
-rw-r--r-- | TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp | 1 | ||||
-rw-r--r-- | TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp | 1 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Root_POA.cpp | 40 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Root_POA.inl | 5 |
10 files changed, 12 insertions, 461 deletions
diff --git a/TAO/tao/PortableServer/Active_Object_Map.cpp b/TAO/tao/PortableServer/Active_Object_Map.cpp index 673049665c5..17361e7c94f 100644 --- a/TAO/tao/PortableServer/Active_Object_Map.cpp +++ b/TAO/tao/PortableServer/Active_Object_Map.cpp @@ -933,220 +933,3 @@ TAO_No_Hint_Strategy::system_id (PortableServer::ObjectId_out system_id, return 0; } -//////////////////////////////////////////////////////////////////////////////// - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class auto_ptr<TAO_Id_Uniqueness_Strategy>; -template class auto_ptr<TAO_Lifespan_Strategy>; -template class auto_ptr<TAO_Id_Assignment_Strategy>; -template class auto_ptr<TAO_Id_Hint_Strategy>; -template class auto_ptr<TAO_Active_Object_Map::servant_map>; -template class auto_ptr<TAO_Active_Object_Map::user_id_map>; - -# if defined (ACE_LACKS_AUTO_PTR) \ - || !(defined (ACE_HAS_STANDARD_CPP_LIBRARY) \ - && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)) -template class ACE_Auto_Basic_Ptr<TAO_Id_Uniqueness_Strategy>; -template class ACE_Auto_Basic_Ptr<TAO_Lifespan_Strategy>; -template class ACE_Auto_Basic_Ptr<TAO_Id_Assignment_Strategy>; -template class ACE_Auto_Basic_Ptr<TAO_Id_Hint_Strategy>; -template class ACE_Auto_Basic_Ptr<TAO_Active_Object_Map::servant_map>; -template class ACE_Auto_Basic_Ptr<TAO_Active_Object_Map::user_id_map>; -# endif /* ACE_LACKS_AUTO_PTR */ - -// Common typedefs. -typedef PortableServer::ObjectId id; -typedef PortableServer::Servant servant; -typedef TAO_Active_Object_Map_Entry *value; - -typedef ACE_Pair<id, value> id_expanded_value; -typedef ACE_Reference_Pair<const id, value> id_value_type; -typedef ACE_Reference_Pair<const servant, value> servant_value_type; -typedef ACE_Equal_To<id> id_compare_keys; -typedef ACE_Equal_To<servant> servant_compare_keys; -typedef TAO_ObjectId_Hash id_hash; -typedef TAO_Servant_Hash servant_hash; -typedef ACE_Noop_Key_Generator<servant> noop_servant_key_generator; - -template class ACE_Noop_Key_Generator<servant>; - -// Common -template class ACE_Reference_Pair<const id, value>; -template class ACE_Reference_Pair<const servant, value>; - -// Map and iterator classes. -template class ACE_Map<id, value>; -template class ACE_Map<servant, value>; -template class ACE_Iterator<id_value_type>; -template class ACE_Iterator<servant_value_type>; -template class ACE_Reverse_Iterator<id_value_type>; -template class ACE_Reverse_Iterator<servant_value_type>; - -// Iterator base classes. -template class ACE_Iterator_Impl<id_value_type>; -template class ACE_Iterator_Impl<servant_value_type>; -template class ACE_Reverse_Iterator_Impl<id_value_type>; -template class ACE_Reverse_Iterator_Impl<servant_value_type>; - -// Active Map Manager related. -template class ACE_Pair<id, value>; -template class ACE_Active_Map_Manager_Adapter<id, value, TAO_Ignore_Original_Key_Adapter>; -template class ACE_Active_Map_Manager_Adapter<id, value, TAO_Preserve_Original_Key_Adapter>; -template class ACE_Active_Map_Manager_Iterator_Adapter<id_value_type, id_expanded_value>; -template class ACE_Active_Map_Manager_Reverse_Iterator_Adapter<id_value_type, id_expanded_value>; -template class ACE_Active_Map_Manager<id_expanded_value>; -template class ACE_Map_Manager<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Iterator_Base<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Iterator<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Reverse_Iterator<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Entry<ACE_Active_Map_Manager_Key, id_expanded_value>; - -// Hash Map Manager related. -template class ACE_Hash_Map_Manager_Ex_Adapter<id, value, id_hash, id_compare_keys, TAO_Incremental_Key_Generator>; -template class ACE_Hash_Map_Manager_Ex_Adapter<servant, value, servant_hash, servant_compare_keys, noop_servant_key_generator>; -template class ACE_Hash_Map_Manager_Ex_Iterator_Adapter<id_value_type, id, value, id_hash, id_compare_keys>; -template class ACE_Hash_Map_Manager_Ex_Iterator_Adapter<servant_value_type, servant, value, servant_hash, servant_compare_keys>; -template class ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<id_value_type, id, value, id_hash, id_compare_keys>; -template class ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<servant_value_type, servant, value, servant_hash, servant_compare_keys>; -template class ACE_Hash_Map_Manager_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<id, value>; -template class ACE_Hash_Map_Entry<servant, value>; -template class ACE_Equal_To<id>; -template class ACE_Equal_To<servant>; - -#if (TAO_HAS_MINIMUM_POA_MAPS == 0) -// Map Manager related. -template class ACE_Map_Manager_Iterator_Adapter<id_value_type, id, value>; -template class ACE_Map_Manager_Iterator_Adapter<servant_value_type, servant, value>; -template class ACE_Map_Manager_Reverse_Iterator_Adapter<id_value_type, id, value>; -template class ACE_Map_Manager_Reverse_Iterator_Adapter<servant_value_type, servant, value>; -template class ACE_Map_Manager_Adapter<id, value, TAO_Incremental_Key_Generator>; -template class ACE_Map_Manager_Adapter<servant, value, noop_servant_key_generator>; -template class ACE_Map_Manager<id, value, ACE_Null_Mutex>; -template class ACE_Map_Manager<servant, value, ACE_Null_Mutex>; -template class ACE_Map_Iterator_Base<id, value, ACE_Null_Mutex>; -template class ACE_Map_Iterator_Base<servant, value, ACE_Null_Mutex>; -template class ACE_Map_Iterator<id, value, ACE_Null_Mutex>; -template class ACE_Map_Iterator<servant, value, ACE_Null_Mutex>; -template class ACE_Map_Reverse_Iterator<id, value, ACE_Null_Mutex>; -template class ACE_Map_Reverse_Iterator<servant, value, ACE_Null_Mutex>; -template class ACE_Map_Entry<id, value>; -template class ACE_Map_Entry<servant, value>; -#endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate auto_ptr<TAO_Id_Uniqueness_Strategy> -#pragma instantiate auto_ptr<TAO_Lifespan_Strategy> -#pragma instantiate auto_ptr<TAO_Id_Assignment_Strategy> -#pragma instantiate auto_ptr<TAO_Id_Hint_Strategy> -#pragma instantiate auto_ptr<TAO_Active_Object_Map::servant_map> -#pragma instantiate auto_ptr<TAO_Active_Object_Map::user_id_map> - -# if defined (ACE_LACKS_AUTO_PTR) \ - || !(defined (ACE_HAS_STANDARD_CPP_LIBRARY) \ - && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)) -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Id_Uniqueness_Strategy> -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Lifespan_Strategy> -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Id_Assignment_Strategy> -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Id_Hint_Strategy> -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Active_Object_Map::servant_map> -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Active_Object_Map::user_id_map> -# endif /* ACE_LACKS_AUTO_PTR */ - -// Common typedefs. -typedef PortableServer::ObjectId id; -typedef PortableServer::Servant servant; -typedef TAO_Active_Object_Map_Entry * value; - -typedef ACE_Pair<id, value> id_expanded_value; -typedef ACE_Reference_Pair<const id, value> id_value_type; -typedef ACE_Reference_Pair<const servant, value> servant_value_type; -typedef ACE_Equal_To<id> id_compare_keys; -typedef ACE_Equal_To<servant> servant_compare_keys; -typedef TAO_ObjectId_Hash id_hash; -typedef TAO_Servant_Hash servant_hash; -typedef ACE_Noop_Key_Generator<servant> noop_servant_key_generator; - -#pragma instantiate ACE_Noop_Key_Generator<servant> - -// Common -#pragma instantiate ACE_Reference_Pair<const id, value> -#pragma instantiate ACE_Reference_Pair<const servant, value> - -// Map and iterator classes. -#pragma instantiate ACE_Map<id, value> -#pragma instantiate ACE_Map<servant, value> -#pragma instantiate ACE_Iterator<id_value_type> -#pragma instantiate ACE_Iterator<servant_value_type> -#pragma instantiate ACE_Reverse_Iterator<id_value_type> -#pragma instantiate ACE_Reverse_Iterator<servant_value_type> - -// Iterator base classes. -#pragma instantiate ACE_Iterator_Impl<id_value_type> -#pragma instantiate ACE_Iterator_Impl<servant_value_type> -#pragma instantiate ACE_Reverse_Iterator_Impl<id_value_type> -#pragma instantiate ACE_Reverse_Iterator_Impl<servant_value_type> - -// Active Map Manager related. -#pragma instantiate ACE_Pair<id, value> -#pragma instantiate ACE_Active_Map_Manager_Adapter<id, value, TAO_Ignore_Original_Key_Adapter> -#pragma instantiate ACE_Active_Map_Manager_Adapter<id, value, TAO_Preserve_Original_Key_Adapter> -#pragma instantiate ACE_Active_Map_Manager_Iterator_Adapter<id_value_type, id_expanded_value> -#pragma instantiate ACE_Active_Map_Manager_Reverse_Iterator_Adapter<id_value_type, id_expanded_value> -#pragma instantiate ACE_Active_Map_Manager<id_expanded_value> -#pragma instantiate ACE_Map_Manager<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator_Base<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<ACE_Active_Map_Manager_Key, id_expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Entry<ACE_Active_Map_Manager_Key, id_expanded_value> - -// Hash Map Manager related. -#pragma instantiate ACE_Hash_Map_Manager_Ex_Adapter<id, value, id_hash, id_compare_keys, TAO_Incremental_Key_Generator> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Adapter<servant, value, servant_hash, servant_compare_keys, noop_servant_key_generator> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Iterator_Adapter<id_value_type, id, value, id_hash, id_compare_keys> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Iterator_Adapter<servant_value_type, servant, value, servant_hash, servant_compare_keys> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<id_value_type, id, value, id_hash, id_compare_keys> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<servant_value_type, servant, value, servant_hash, servant_compare_keys> -#pragma instantiate ACE_Hash_Map_Manager_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<id, value, id_hash, id_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<servant, value, servant_hash, servant_compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<id, value> -#pragma instantiate ACE_Hash_Map_Entry<servant, value> -#pragma instantiate ACE_Equal_To<id> -#pragma instantiate ACE_Equal_To<servant> - -#if (TAO_HAS_MINIMUM_POA_MAPS == 0) -// Map Manager related. -#pragma instantiate ACE_Map_Manager_Iterator_Adapter<id_value_type, id, value> -#pragma instantiate ACE_Map_Manager_Iterator_Adapter<servant_value_type, servant, value> -#pragma instantiate ACE_Map_Manager_Reverse_Iterator_Adapter<id_value_type, id, value> -#pragma instantiate ACE_Map_Manager_Reverse_Iterator_Adapter<servant_value_type, servant, value> -#pragma instantiate ACE_Map_Manager_Adapter<id, value, TAO_Incremental_Key_Generator> -#pragma instantiate ACE_Map_Manager_Adapter<servant, value, noop_servant_key_generator> -#pragma instantiate ACE_Map_Manager<id, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Manager<servant, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator_Base<id, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator_Base<servant, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<id, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<servant, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<id, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<servant, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Entry<id, value> -#pragma instantiate ACE_Map_Entry<servant, value> -#endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PortableServer/ImR_Client_Adapter.cpp b/TAO/tao/PortableServer/ImR_Client_Adapter.cpp index bd0afb4930c..379a7696117 100644 --- a/TAO/tao/PortableServer/ImR_Client_Adapter.cpp +++ b/TAO/tao/PortableServer/ImR_Client_Adapter.cpp @@ -1,7 +1,6 @@ // @(#) $Id$ #include "ImR_Client_Adapter.h" -#include "ace/Dynamic_Service.h" ACE_RCSID (tao, ImR_Client_Adapter, @@ -15,13 +14,6 @@ namespace TAO ImR_Client_Adapter::~ImR_Client_Adapter (void) { } - - #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - template class ACE_Dynamic_Service<ImR_Client_Adapter>; - #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - #pragma instantiate ACE_Dynamic_Service<ImR_Client_Adapter> - - #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ } } diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp index 00c2b3226fe..21fba88fcc9 100644 --- a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp +++ b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp @@ -135,6 +135,7 @@ namespace TAO LifespanStrategyPersistent::check_state (ACE_ENV_SINGLE_ARG_DECL) { this->poa_->tao_poa_manager().check_state (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; } ::PortableServer::LifespanPolicyValue diff --git a/TAO/tao/PortableServer/LifespanStrategyTransient.cpp b/TAO/tao/PortableServer/LifespanStrategyTransient.cpp index 14f457efa37..267707e0f75 100644 --- a/TAO/tao/PortableServer/LifespanStrategyTransient.cpp +++ b/TAO/tao/PortableServer/LifespanStrategyTransient.cpp @@ -95,6 +95,7 @@ namespace TAO else { this->poa_->tao_poa_manager().check_state (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; } } diff --git a/TAO/tao/PortableServer/Object_Adapter.cpp b/TAO/tao/PortableServer/Object_Adapter.cpp index fcd228b74bf..6ad3cc7ad62 100644 --- a/TAO/tao/PortableServer/Object_Adapter.cpp +++ b/TAO/tao/PortableServer/Object_Adapter.cpp @@ -1242,168 +1242,3 @@ TAO_Object_Adapter::servant_dispatcher (TAO_Servant_Dispatcher *dispatcher) this->servant_dispatcher_ = dispatcher; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -// Common typedefs. -typedef TAO_Object_Adapter::poa_name key; -typedef TAO_Root_POA *value; - -typedef ACE_Pair<key, value> expanded_value; -typedef ACE_Reference_Pair<const key, value> tao_value_type; -typedef ACE_Equal_To<key> compare_keys; -typedef TAO_ObjectId_Hash hash_key; -typedef ACE_Noop_Key_Generator<key> noop_key_generator; - -template class auto_ptr<TAO_Object_Adapter::Hint_Strategy>; -template class auto_ptr<TAO_Object_Adapter::transient_poa_map>; - -# if defined (ACE_LACKS_AUTO_PTR) \ - || !(defined (ACE_HAS_STANDARD_CPP_LIBRARY) \ - && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)) -template class ACE_Auto_Basic_Ptr<TAO_Object_Adapter::Hint_Strategy>; -template class ACE_Auto_Basic_Ptr<TAO_Object_Adapter::transient_poa_map>; -# endif /* ACE_LACKS_AUTO_PTR */ - -template class ACE_Noop_Key_Generator<key>; - -// Common -template class ACE_Reference_Pair<const key, value>; - -// Map and iterator classes. -template class ACE_Map<key, value>; -template class ACE_Iterator<tao_value_type>; -template class ACE_Reverse_Iterator<tao_value_type>; - -// Iterator base classes. -template class ACE_Iterator_Impl<tao_value_type>; -template class ACE_Reverse_Iterator_Impl<tao_value_type>; - -// Active Map Manager related. -template class ACE_Pair<key, value>; -template class ACE_Active_Map_Manager_Adapter<key, value, TAO_Ignore_Original_Key_Adapter>; -template class ACE_Active_Map_Manager_Adapter<key, value, TAO_Preserve_Original_Key_Adapter>; -template class ACE_Active_Map_Manager_Iterator_Adapter<tao_value_type, expanded_value>; -template class ACE_Active_Map_Manager_Reverse_Iterator_Adapter<tao_value_type, expanded_value>; -template class ACE_Active_Map_Manager<expanded_value>; -template class ACE_Map_Manager<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Iterator_Base<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Iterator<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Reverse_Iterator<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex>; -template class ACE_Map_Entry<ACE_Active_Map_Manager_Key, expanded_value>; - -// Hash Map Manager related. -#if (TAO_HAS_MINIMUM_POA_MAPS == 0) -template class ACE_Hash_Map_Manager_Ex_Adapter<key, value, hash_key, compare_keys, TAO_Incremental_Key_Generator>; -#endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ -template class ACE_Hash_Map_Manager_Ex_Adapter<key, value, hash_key, compare_keys, noop_key_generator>; -template class ACE_Hash_Map_Manager_Ex_Iterator_Adapter<tao_value_type, key, value, hash_key, compare_keys>; -template class ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<tao_value_type, key, value, hash_key, compare_keys>; -template class ACE_Hash_Map_Manager_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<key, value>; - -// Already in Active_Object_Map.cpp -// template class ACE_Equal_To<key>; - -#if (TAO_HAS_MINIMUM_POA_MAPS == 0) -// Map Manager related. -template class ACE_Map_Manager_Iterator_Adapter<tao_value_type, key, value>; -template class ACE_Map_Manager_Reverse_Iterator_Adapter<tao_value_type, key, value>; -template class ACE_Map_Manager_Adapter<key, value, TAO_Incremental_Key_Generator>; -template class ACE_Map_Manager_Adapter<key, value, noop_key_generator>; -template class ACE_Map_Manager<key, value, ACE_Null_Mutex>; -template class ACE_Map_Iterator_Base<key, value, ACE_Null_Mutex>; -template class ACE_Map_Iterator<key, value, ACE_Null_Mutex>; -template class ACE_Map_Reverse_Iterator<key, value, ACE_Null_Mutex>; -template class ACE_Map_Entry<key, value>; -#endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ - -template class ACE_Unbounded_Set<TAO_POA_Manager *>; -template class ACE_Node<TAO_POA_Manager *>; -template class ACE_Unbounded_Set_Iterator<TAO_POA_Manager *>; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -// Common typedefs. -typedef TAO_Object_Adapter::poa_name key; -typedef TAO_Root_POA *value; - -typedef ACE_Pair<key, value> expanded_value; -typedef ACE_Reference_Pair<const key, value> tao_value_type; -typedef ACE_Equal_To<key> compare_keys; -typedef TAO_ObjectId_Hash hash_key; -typedef ACE_Noop_Key_Generator<key> noop_key_generator; - -#pragma instantiate auto_ptr<TAO_Object_Adapter::Hint_Strategy> -#pragma instantiate auto_ptr<TAO_Object_Adapter::transient_poa_map> - -# if defined (ACE_LACKS_AUTO_PTR) \ - || !(defined (ACE_HAS_STANDARD_CPP_LIBRARY) \ - && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)) -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Object_Adapter::Hint_Strategy> -# pragma instantiate ACE_Auto_Basic_Ptr<TAO_Object_Adapter::transient_poa_map> -# endif /* ACE_LACKS_AUTO_PTR */ - -#pragma instantiate ACE_Noop_Key_Generator<key> - -// Common -#pragma instantiate ACE_Reference_Pair<const key, value> - -// Map and iterator classes. -#pragma instantiate ACE_Map<key, value> -#pragma instantiate ACE_Iterator<tao_value_type> -#pragma instantiate ACE_Reverse_Iterator<tao_value_type> - -// Iterator base classes. -#pragma instantiate ACE_Iterator_Impl<tao_value_type> -#pragma instantiate ACE_Reverse_Iterator_Impl<tao_value_type> - -// Active Map Manager related. -#pragma instantiate ACE_Pair<key, value> -#pragma instantiate ACE_Active_Map_Manager_Adapter<key, value, TAO_Ignore_Original_Key_Adapter> -#pragma instantiate ACE_Active_Map_Manager_Adapter<key, value, TAO_Preserve_Original_Key_Adapter> -#pragma instantiate ACE_Active_Map_Manager_Iterator_Adapter<tao_value_type, expanded_value> -#pragma instantiate ACE_Active_Map_Manager_Reverse_Iterator_Adapter<tao_value_type, expanded_value> -#pragma instantiate ACE_Active_Map_Manager<expanded_value> -#pragma instantiate ACE_Map_Manager<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator_Base<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<ACE_Active_Map_Manager_Key, expanded_value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Entry<ACE_Active_Map_Manager_Key, expanded_value> - -// Hash Map Manager related. -#if (TAO_HAS_MINIMUM_POA_MAPS == 0) -#pragma instantiate ACE_Hash_Map_Manager_Ex_Adapter<key, value, hash_key, compare_keys, TAO_Incremental_Key_Generator> -#endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ -#pragma instantiate ACE_Hash_Map_Manager_Ex_Adapter<key, value, hash_key, compare_keys, noop_key_generator> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Iterator_Adapter<tao_value_type, key, value, hash_key, compare_keys> -#pragma instantiate ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<tao_value_type, key, value, hash_key, compare_keys> -#pragma instantiate ACE_Hash_Map_Manager_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<key, value, hash_key, compare_keys, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<key, value> - -// Already in Active_Object_Map.cpp -// #pragma instantiate ACE_Equal_To<key> - -#if (TAO_HAS_MINIMUM_POA_MAPS == 0) -// Map Manager related. -#pragma instantiate ACE_Map_Manager_Iterator_Adapter<tao_value_type, key, value> -#pragma instantiate ACE_Map_Manager_Reverse_Iterator_Adapter<tao_value_type, key, value> -#pragma instantiate ACE_Map_Manager_Adapter<key, value, TAO_Incremental_Key_Generator> -#pragma instantiate ACE_Map_Manager_Adapter<key, value, noop_key_generator> -#pragma instantiate ACE_Map_Manager<key, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator_Base<key, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<key, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<key, value, ACE_Null_Mutex> -#pragma instantiate ACE_Map_Entry<key, value> -#endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ - -#pragma instantiate ACE_Unbounded_Set<TAO_POA_Manager *> -#pragma instantiate ACE_Node<TAO_POA_Manager *> -#pragma instantiate ACE_Unbounded_Set_Iterator<TAO_POA_Manager *> - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp index dd03dbe1f81..feea6d0d7e9 100644 --- a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp +++ b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp @@ -128,37 +128,3 @@ TAO_Dynamic_Hash_OpTable::find (const char *opname, return retval; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Iterator_Base_Ex<const char *, - TAO::Operation_Skeletons, - ACE_Hash<const char *>, - ACE_Equal_To<const char *>, - ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<const char *, - TAO::Operation_Skeletons, - ACE_Hash<const char *>, - ACE_Equal_To<const char *>, - ACE_Null_Mutex>; - -template class ACE_Hash_Map_Reverse_Iterator_Ex<const char *, - TAO::Operation_Skeletons, - ACE_Hash<const char *>, - ACE_Equal_To<const char *>, - ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<const char *, - TAO::Operation_Skeletons, - ACE_Hash<const char *>, - ACE_Equal_To<const char *>, - ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<const char *, - TAO::Operation_Skeletons>; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<const char *, TAO::Operation_Skeletons, ACE_Hash<const char *>, ACE_Equal_To<const char *>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<const char *, TAO::Operation_Skeletons, ACE_Hash<const char *>, ACE_Equal_To<const char *>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<const char *, TAO::Operation_Skeletons, ACE_Hash<const char *>, ACE_Equal_To<const char *>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<const char *, TAO::Operation_Skeletons, ACE_Hash<const char *>, ACE_Equal_To<const char *>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<const char *, TAO::Operation_Skeletons> - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp index 82634050f25..c1ffab9927d 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp @@ -36,6 +36,7 @@ namespace TAO } RequestProcessingStrategy::strategy_cleanup (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; } PortableServer::ServantManager_ptr diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp index 84dbd2881cd..47beac46acc 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp @@ -35,6 +35,7 @@ namespace TAO } RequestProcessingStrategy::strategy_cleanup (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; } PortableServer::ServantManager_ptr diff --git a/TAO/tao/PortableServer/Root_POA.cpp b/TAO/tao/PortableServer/Root_POA.cpp index bf155ab378d..cf8d0d354bc 100644 --- a/TAO/tao/PortableServer/Root_POA.cpp +++ b/TAO/tao/PortableServer/Root_POA.cpp @@ -183,7 +183,10 @@ TAO_Root_POA::set_obj_ref_factory ( PortableInterceptor::ObjectReferenceFactory *current_factory ACE_ENV_ARG_DECL) { - if (this->ORT_adapter (ACE_ENV_SINGLE_ARG_PARAMETER)) + TAO::ORT_Adapter *adapter = this->ORT_adapter (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; + + if (adapter) { // Activate a different factory this->ort_adapter_->set_obj_ref_factory (current_factory @@ -2888,38 +2891,3 @@ TAO_POA_Static_Resources::TAO_POA_Static_Resources (void) { } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class ACE_Array_Base<TAO_Active_Object_Map::Map_Entry *>; - -template class ACE_Map_Entry<TAO_Unbounded_Sequence<unsigned char>, TAO_ServantBase *>; -template class ACE_Hash_Map_Entry<ACE_CString, TAO_Root_POA *>; -template class ACE_Hash_Map_Manager<ACE_CString, TAO_Root_POA *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator<ACE_CString, TAO_Root_POA *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator<ACE_CString, TAO_Root_POA *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Write_Guard<ACE_Lock>; -template class ACE_Read_Guard<ACE_Lock>; -template class ACE_Array_Base <IOP::ProfileId>; -template class ACE_Node<TAO_Root_POA *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate ACE_Array_Base<TAO_Active_Object_Map::Map_Entry *> - -#pragma instantiate ACE_Map_Entry<TAO_Unbounded_Sequence<unsigned char>, TAO_ServantBase *> -#pragma instantiate ACE_Hash_Map_Entry<ACE_CString, TAO_Root_POA *> -#pragma instantiate ACE_Hash_Map_Manager<ACE_CString, TAO_Root_POA *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator<ACE_CString, TAO_Root_POA *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_CString, TAO_Root_POA *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, TAO_Root_POA *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Write_Guard<ACE_Lock> -#pragma instantiate ACE_Read_Guard<ACE_Lock> -#pragma instantiate ACE_Array_Base <IOP::ProfileId> -#pragma instantiate ACE_Node<TAO_Root_POA *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PortableServer/Root_POA.inl b/TAO/tao/PortableServer/Root_POA.inl index a3abcf9341e..cc6a7fd44f6 100644 --- a/TAO/tao/PortableServer/Root_POA.inl +++ b/TAO/tao/PortableServer/Root_POA.inl @@ -41,7 +41,10 @@ ACE_INLINE PortableInterceptor::ObjectReferenceTemplate * TAO_Root_POA::get_adapter_template (ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC ((CORBA::SystemException)) { - if (this->ORT_adapter (ACE_ENV_SINGLE_ARG_PARAMETER)) + TAO::ORT_Adapter *adapter = this->ORT_adapter (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK_RETURN (0); + + if (adapter) { return this->ort_adapter_->get_adapter_template(); } |