diff options
author | fhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-02 02:32:10 +0000 |
---|---|---|
committer | fhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-02 02:32:10 +0000 |
commit | 46b68f8886267752e21240d0d2a38aff51b08cb4 (patch) | |
tree | e6c4cb63722c260d6c229f938dc9a28800bf50ae /TAO/orbsvcs | |
parent | 3b90547b819834d830be139f52dbbd436b561bbd (diff) | |
download | ATCD-46b68f8886267752e21240d0d2a38aff51b08cb4.tar.gz |
ChangeLogTag: Thu Feb 1 20:29:54 2001 Frank Hunleth <fhunleth@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs')
147 files changed, 761 insertions, 761 deletions
diff --git a/TAO/orbsvcs/IFR_Service/InterfaceS.cpp b/TAO/orbsvcs/IFR_Service/InterfaceS.cpp index 540f033d60b..7310a2f1791 100644 --- a/TAO/orbsvcs/IFR_Service/InterfaceS.cpp +++ b/TAO/orbsvcs/IFR_Service/InterfaceS.cpp @@ -191,7 +191,7 @@ _TAO_IRObject_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -669,7 +669,7 @@ POA_IR::_TAO_Contained_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -1678,7 +1678,7 @@ POA_IR::_TAO_Container_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -3229,7 +3229,7 @@ POA_IR::_TAO_IDLType_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -3671,7 +3671,7 @@ POA_IR::_TAO_Repository_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -4596,7 +4596,7 @@ POA_IR::_TAO_ComponentRepository_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -5166,7 +5166,7 @@ POA_IR::_TAO_ModuleDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -5550,7 +5550,7 @@ POA_IR::_TAO_ConstantDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -6210,7 +6210,7 @@ POA_IR::_TAO_TypedefDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -6608,7 +6608,7 @@ POA_IR::_TAO_StructDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -7132,7 +7132,7 @@ POA_IR::_TAO_UnionDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -7806,7 +7806,7 @@ POA_IR::_TAO_EnumDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -8306,7 +8306,7 @@ POA_IR::_TAO_AliasDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -8804,7 +8804,7 @@ POA_IR::_TAO_NativeDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -9158,7 +9158,7 @@ POA_IR::_TAO_PrimitiveDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -9580,7 +9580,7 @@ POA_IR::_TAO_StringDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -10060,7 +10060,7 @@ POA_IR::_TAO_WstringDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -10542,7 +10542,7 @@ POA_IR::_TAO_FixedDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -11139,7 +11139,7 @@ POA_IR::_TAO_SequenceDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -11792,7 +11792,7 @@ POA_IR::_TAO_ArrayDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -12470,7 +12470,7 @@ POA_IR::_TAO_ExceptionDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -13007,7 +13007,7 @@ POA_IR::_TAO_AttributeDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -13727,7 +13727,7 @@ POA_IR::_TAO_OperationDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -14755,7 +14755,7 @@ POA_IR::_TAO_InterfaceDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -15745,7 +15745,7 @@ POA_IR::_TAO_ValueMemberDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -16442,7 +16442,7 @@ POA_IR::_TAO_ValueDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -17971,7 +17971,7 @@ POA_IR::_TAO_ValueBoxDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -18469,7 +18469,7 @@ POA_IR::_TAO_ProvidesDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -18902,7 +18902,7 @@ POA_IR::_TAO_UsesDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -19391,7 +19391,7 @@ POA_IR::_TAO_EventDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -19889,7 +19889,7 @@ POA_IR::_TAO_EmitsDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -20270,7 +20270,7 @@ POA_IR::_TAO_PublishesDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -20651,7 +20651,7 @@ POA_IR::_TAO_ConsumesDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -21072,7 +21072,7 @@ POA_IR::_TAO_ComponentDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -22372,7 +22372,7 @@ POA_IR::_TAO_PrimaryKeyDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -22928,7 +22928,7 @@ POA_IR::_TAO_FactoryDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -23367,7 +23367,7 @@ POA_IR::_TAO_FinderDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { @@ -23784,7 +23784,7 @@ POA_IR::_TAO_HomeDef_Strategized_Proxy_Broker::create_proxy ( CORBA::Environment &ACE_TRY_ENV ) { - ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); if (this->proxy_cache_[strategy] == 0) { diff --git a/TAO/orbsvcs/IFR_Service/InterfaceS.h b/TAO/orbsvcs/IFR_Service/InterfaceS.h index 1b509aafb29..6cdb0b3b1a5 100644 --- a/TAO/orbsvcs/IFR_Service/InterfaceS.h +++ b/TAO/orbsvcs/IFR_Service/InterfaceS.h @@ -168,7 +168,7 @@ private: // instances of a given IDL interface type. _TAO_IRObject_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -507,7 +507,7 @@ private: _TAO_Contained_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -1201,7 +1201,7 @@ private: _TAO_Container_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -1787,7 +1787,7 @@ private: _TAO_IDLType_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -2266,7 +2266,7 @@ private: _TAO_Repository_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -3030,7 +3030,7 @@ private: _TAO_ComponentRepository_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -3755,7 +3755,7 @@ private: _TAO_ModuleDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -4406,7 +4406,7 @@ private: _TAO_ConstantDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -4884,7 +4884,7 @@ private: _TAO_TypedefDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -5440,7 +5440,7 @@ private: _TAO_StructDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -6261,7 +6261,7 @@ private: _TAO_UnionDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -6963,7 +6963,7 @@ private: _TAO_EnumDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -7432,7 +7432,7 @@ private: _TAO_AliasDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -7868,7 +7868,7 @@ private: _TAO_NativeDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -8198,7 +8198,7 @@ private: _TAO_PrimitiveDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -8467,7 +8467,7 @@ private: _TAO_StringDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -8754,7 +8754,7 @@ private: _TAO_WstringDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -9074,7 +9074,7 @@ private: _TAO_FixedDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -9444,7 +9444,7 @@ private: _TAO_SequenceDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -9830,7 +9830,7 @@ private: _TAO_ArrayDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -10383,7 +10383,7 @@ private: _TAO_ExceptionDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -11084,7 +11084,7 @@ private: _TAO_AttributeDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -11735,7 +11735,7 @@ private: _TAO_OperationDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -12598,7 +12598,7 @@ private: _TAO_InterfaceDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -13440,7 +13440,7 @@ private: _TAO_ValueMemberDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -14354,7 +14354,7 @@ private: _TAO_ValueDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -15317,7 +15317,7 @@ private: _TAO_ValueBoxDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -15761,7 +15761,7 @@ private: _TAO_ProvidesDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -16195,7 +16195,7 @@ private: _TAO_UsesDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -16646,7 +16646,7 @@ private: _TAO_EventDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -17082,7 +17082,7 @@ private: _TAO_EmitsDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -17501,7 +17501,7 @@ private: _TAO_PublishesDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -17920,7 +17920,7 @@ private: _TAO_ConsumesDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -18769,7 +18769,7 @@ private: _TAO_ComponentDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -19737,7 +19737,7 @@ private: _TAO_PrimaryKeyDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -20245,7 +20245,7 @@ private: _TAO_FactoryDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -20812,7 +20812,7 @@ private: _TAO_FinderDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. @@ -21649,7 +21649,7 @@ private: _TAO_HomeDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given // interface. diff --git a/TAO/orbsvcs/IFR_Service/Repository_i.cpp b/TAO/orbsvcs/IFR_Service/Repository_i.cpp index 6ee8a571aa1..84c64e05424 100644 --- a/TAO/orbsvcs/IFR_Service/Repository_i.cpp +++ b/TAO/orbsvcs/IFR_Service/Repository_i.cpp @@ -28,7 +28,7 @@ TAO_Repository_i::TAO_Repository_i (CORBA::ORB_ptr orb, if (OPTIONS::instance ()->enable_locking ()) { ACE_NEW_THROW_EX (this->lock_, - ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (), + ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (), CORBA::NO_MEMORY ()); } else diff --git a/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.cpp.diff b/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.cpp.diff index b382d6f5028..9943343a372 100644 --- a/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.cpp.diff +++ b/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.cpp.diff @@ -2293,7 +2293,7 @@ - CORBA::Any *result_any = - TAO_RequestInfo_Util::make_any (tk_void_any, ACE_TRY_ENV); - ACE_CHECK_RETURN (0); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - return result_any; -} @@ -3892,7 +3892,7 @@ - ) +) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -5177,7 +5177,7 @@ - _tao_server_request.orb_core ()->server_request_interceptors (), - _tao_server_request.interceptor_count () - ); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - POA_IR::Container::TAO_ServerRequestInfo_IR_Container_contents ri ( - _tao_server_request, @@ -6144,7 +6144,7 @@ - _tao_server_request.orb_core ()->server_request_interceptors (), - _tao_server_request.interceptor_count () - ); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - POA_IR::Container::TAO_ServerRequestInfo_IR_Container_create_union ri ( - _tao_server_request, @@ -8848,7 +8848,7 @@ - CORBA::ULong length_base_interfaces = parameter_list->length (); - parameter_list->length (length_base_interfaces + 1); - (*parameter_list)[length_base_interfaces].argument <<= this->base_interfaces_; -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - (*parameter_list)[length_base_interfaces].mode = Dynamic::PARAM_IN; - @@ -9799,7 +9799,7 @@ + const char* logical_type_id ) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -10234,7 +10234,7 @@ - POA_IR::IDLType *_tao_impl = (POA_IR::IDLType *) _tao_object_reference; - CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV); - ACE_CHECK; -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - _tao_server_request.init_reply (); - TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); @@ -12410,7 +12410,7 @@ - Dynamic::ParameterList *parameter_list = - TAO_RequestInfo_Util::make_parameter_list (ACE_TRY_ENV); - ACE_CHECK_RETURN (0); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - Dynamic::ParameterList_var safe_parameter_list = parameter_list; + if (this->proxy_cache_[strategy] == 0) @@ -21599,7 +21599,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -26727,7 +26727,7 @@ - Dynamic::ParameterList *parameter_list = - TAO_RequestInfo_Util::make_parameter_list (ACE_TRY_ENV); - ACE_CHECK_RETURN (0); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - return parameter_list; + if (this->proxy_cache_[strategy] == 0) @@ -27396,7 +27396,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -30484,7 +30484,7 @@ CORBA::Environment &ACE_TRY_ENV ) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -30790,7 +30790,7 @@ + CORBA::Environment &ACE_TRY_ENV + ) +{ -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); + + if (this->proxy_cache_[strategy] == 0) + { @@ -31992,7 +31992,7 @@ - CORBA::Any *result_any = - TAO_RequestInfo_Util::make_any (tk_void_any, ACE_TRY_ENV); - ACE_CHECK_RETURN (0); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - return result_any; -} @@ -32547,7 +32547,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -34995,7 +34995,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -37291,7 +37291,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -38633,7 +38633,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -42672,7 +42672,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -43429,7 +43429,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -43993,7 +43993,7 @@ - CORBA::Environment &ACE_TRY_ENV - ) -{ -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -44944,7 +44944,7 @@ + CORBA::SystemException + )) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -46225,7 +46225,7 @@ - ) +) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -48547,7 +48547,7 @@ - interface_type, - ACE_TRY_ENV - ); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); + + if (this->proxy_cache_[strategy] == 0) + { @@ -50207,7 +50207,7 @@ { - TAO_InputCDR &_tao_in = _tao_server_request.incoming (); - POA_IR::ComponentDef *_tao_impl = (POA_IR::ComponentDef *)_tao_object_reference; -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); + + if (this->proxy_cache_[strategy] == 0) + { @@ -51064,7 +51064,7 @@ - Dynamic::ParameterList *parameter_list = - TAO_RequestInfo_Util::make_parameter_list (ACE_TRY_ENV); - ACE_CHECK_RETURN (0); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - return parameter_list; + if (this->proxy_cache_[strategy] == 0) @@ -51893,7 +51893,7 @@ - TAO_RequestInfo_Util::make_parameter_list (ACE_TRY_ENV); - ACE_CHECK_RETURN (0); +{ -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - Dynamic::ParameterList_var safe_parameter_list = parameter_list; - @@ -52611,7 +52611,7 @@ + CORBA::Environment &ACE_TRY_ENV + ) +{ -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); + + if (this->proxy_cache_[strategy] == 0) + { @@ -53000,7 +53000,7 @@ + CORBA::SystemException + )) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -54164,7 +54164,7 @@ - ) +) { -- ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); +- ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) - { @@ -56276,7 +56276,7 @@ - exceptions, - ACE_TRY_ENV - ); -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); + + if (this->proxy_cache_[strategy] == 0) + { @@ -56915,7 +56915,7 @@ ) { - POA_IR::HomeDef *_tao_impl = (POA_IR::HomeDef *)_tao_object_reference; -+ ACE_GUARD (ACE_SYNCH_MUTEX, guard, this->mutex_); ++ ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); + + if (this->proxy_cache_[strategy] == 0) + { diff --git a/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.h.diff b/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.h.diff index e1f19abd250..ef4b62c2985 100644 --- a/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.h.diff +++ b/TAO/orbsvcs/IFR_Service/diffs/InterfaceS.h.diff @@ -351,7 +351,7 @@ - + _TAO_IRObject_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; // This funxtion is used to get an handle to the unique instance // of the Strategized Proxy Broker that is available for a given @@ -305,16 +187,16 @@ @@ -1391,7 +1391,7 @@ + _TAO_Contained_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -1273,7 +516,6 @@ static _TAO_Contained_Strategized_Proxy_Broker *the_TAO_Contained_Strategized_Proxy_Broker (void); }; @@ -2825,7 +2825,7 @@ + _TAO_Container_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -3982,7 +3982,7 @@ + _TAO_IDLType_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -2865,10 +1793,9 @@ // interface. @@ -4987,7 +4987,7 @@ + _TAO_Repository_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -3512,10 +2272,9 @@ // interface. @@ -6295,7 +6295,7 @@ - ::IR::_TAO_Repository_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -6644,7 +6644,7 @@ + _TAO_ComponentRepository_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -8036,7 +8036,7 @@ + _TAO_ModuleDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -5332,10 +3761,9 @@ // interface. @@ -9290,7 +9290,7 @@ + _TAO_ConstantDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -6067,10 +4412,9 @@ // interface. @@ -10545,7 +10545,7 @@ + _TAO_TypedefDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -6983,10 +4890,9 @@ // interface. @@ -11377,7 +11377,7 @@ - ::IR::_TAO_TypedefDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -11636,7 +11636,7 @@ + _TAO_StructDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -12649,7 +12649,7 @@ - ::IR::_TAO_StructDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -12937,7 +12937,7 @@ - ACE_THROW_SPEC (( - CORBA::SystemException - )); -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -14255,7 +14255,7 @@ + _TAO_EnumDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -14576,7 +14576,7 @@ - ::IR::_TAO_UnionDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -15457,7 +15457,7 @@ + _TAO_AliasDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -15978,7 +15978,7 @@ - ::IR::_TAO_EnumDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -16363,7 +16363,7 @@ + _TAO_NativeDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -16962,7 +16962,7 @@ + _TAO_PrimitiveDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -10625,10 +8204,9 @@ // interface. @@ -17574,7 +17574,7 @@ + _TAO_StringDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -11073,10 +8473,9 @@ // interface. @@ -18148,7 +18148,7 @@ + _TAO_WstringDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -11466,10 +8760,9 @@ // interface. @@ -18731,7 +18731,7 @@ + _TAO_FixedDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -11848,10 +9080,9 @@ // interface. @@ -19381,7 +19381,7 @@ + _TAO_SequenceDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -12248,10 +9450,9 @@ // interface. @@ -20166,7 +20166,7 @@ + _TAO_ArrayDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -12782,10 +9836,9 @@ // interface. @@ -21202,7 +21202,7 @@ + _TAO_ExceptionDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -13417,10 +10389,9 @@ // interface. @@ -22217,7 +22217,7 @@ - ::IR::_TAO_ArrayDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -22513,7 +22513,7 @@ + _TAO_AttributeDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -23572,7 +23572,7 @@ - ::IR::_TAO_ExceptionDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -23839,7 +23839,7 @@ + _TAO_OperationDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -25352,7 +25352,7 @@ + _TAO_InterfaceDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -15751,10 +12604,9 @@ // interface. @@ -27214,7 +27214,7 @@ + _TAO_ValueMemberDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -16970,10 +13446,9 @@ // interface. @@ -28946,7 +28946,7 @@ + _TAO_ValueDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -29357,7 +29357,7 @@ - ::IR::_TAO_InterfaceDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -31166,7 +31166,7 @@ + _TAO_ValueBoxDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -19440,10 +15323,9 @@ // interface. @@ -32036,7 +32036,7 @@ + _TAO_ProvidesDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -33113,7 +33113,7 @@ + _TAO_UsesDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -34135,7 +34135,7 @@ + _TAO_EventDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -21319,10 +16652,9 @@ // interface. @@ -35095,7 +35095,7 @@ + _TAO_EmitsDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -35887,7 +35887,7 @@ + _TAO_PublishesDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -22395,10 +17507,9 @@ // interface. @@ -36698,7 +36698,7 @@ + _TAO_ConsumesDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -22902,10 +17926,9 @@ // interface. @@ -37660,7 +37660,7 @@ - ::IR::_TAO_UsesDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -38221,7 +38221,7 @@ + _TAO_ComponentDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -38604,7 +38604,7 @@ - ::IR::_TAO_EventDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -39492,7 +39492,7 @@ - ::IR::_TAO_EmitsDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -40200,7 +40200,7 @@ + _TAO_PrimaryKeyDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -24896,10 +19743,9 @@ // interface. @@ -41025,7 +41025,7 @@ + _TAO_FactoryDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -25327,10 +20251,9 @@ // interface. @@ -42123,7 +42123,7 @@ + _TAO_FinderDef_Proxy_Impl + *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; + -+ ACE_SYNCH_MUTEX mutex_; ++ TAO_SYNCH_MUTEX mutex_; +// This funxtion is used to get an handle to the unique instance +// of the Strategized Proxy Broker that is available for a given +// interface. @@ -43496,7 +43496,7 @@ - ::IR::_TAO_ComponentDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -44800,7 +44800,7 @@ - ::IR::_TAO_PrimaryKeyDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -45320,7 +45320,7 @@ - ::IR::_TAO_FactoryDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -45899,7 +45899,7 @@ - ::IR::_TAO_FinderDef_Proxy_Impl - *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - -- ACE_SYNCH_MUTEX mutex_; +- TAO_SYNCH_MUTEX mutex_; -// This funxtion is used to get an handle to the unique instance -// of the Strategized Proxy Broker that is available for a given -// interface. @@ -47317,7 +47317,7 @@ + _TAO_HomeDef_Proxy_Impl *proxy_cache_[TAO_ORB_Core::COLLOCATION_STRATEGIES_NUM]; - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; @@ -30465,641 +21658,639 @@ static _TAO_HomeDef_Strategized_Proxy_Broker *the_TAO_HomeDef_Strategized_Proxy_Broker (void); }; diff --git a/TAO/orbsvcs/IFR_Service/ifr_visitor.cpp b/TAO/orbsvcs/IFR_Service/ifr_visitor.cpp index fa664d0d645..1384a99f061 100644 --- a/TAO/orbsvcs/IFR_Service/ifr_visitor.cpp +++ b/TAO/orbsvcs/IFR_Service/ifr_visitor.cpp @@ -43,7 +43,7 @@ ifr_visitor::ifr_visitor (CORBA::Environment &ACE_TRY_ENV) if (be_global->enable_locking ()) { ACE_NEW_THROW_EX (this->lock_, - ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (), + ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (), CORBA::NO_MEMORY ()); } else diff --git a/TAO/orbsvcs/ImplRepo_Service/NT_Service.h b/TAO/orbsvcs/ImplRepo_Service/NT_Service.h index 4412c58d4a2..026bf253d5c 100644 --- a/TAO/orbsvcs/ImplRepo_Service/NT_Service.h +++ b/TAO/orbsvcs/ImplRepo_Service/NT_Service.h @@ -38,7 +38,7 @@ static const char *IMR_DESCRIPTION = "Activation service for TAO"; class ImR_NT_Service : public ACE_NT_Service { public: - typedef ACE_Recursive_Thread_Mutex MUTEX; + typedef TAO_SYNCH_RECURSIVE_MUTEX MUTEX; /// Constructor (not protected since it is used by ACE_NT_SERVICE_DEFINE). ImR_NT_Service (void); diff --git a/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h b/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h index 19e7b9ac96e..de8d4a826cf 100644 --- a/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h +++ b/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h @@ -32,7 +32,7 @@ class TAO_NT_Naming_Service : public ACE_NT_Service // = TITLE // Run the TAO Naming Service as a Windows NT Service. public: - typedef ACE_Recursive_Thread_Mutex MUTEX; + typedef TAO_SYNCH_RECURSIVE_MUTEX MUTEX; // = Initialization and termination hooks. TAO_NT_Naming_Service (void); diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp index ba8ae33e489..ba6093b1293 100644 --- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp +++ b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp @@ -306,32 +306,32 @@ template class ACE_Auto_Basic_Ptr<RtecScheduler::Config_Info>; template class ACE_Auto_Basic_Ptr<RtecScheduler::RT_Info>; template class ACE_Auto_Basic_Ptr<TAO_Reconfig_Scheduler_Entry>; template class ACE_Equal_To<int>; -template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; template class ACE_Hash_Map_Entry<int, RtecScheduler::Config_Info *>; template class ACE_Hash_Map_Entry<int, RtecScheduler::Dependency_Set *>; template class ACE_Hash_Map_Entry<int, RtecScheduler::RT_Info *>; -template class ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX>; +template class ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX>; template class ACE_RB_Tree_Node<const char *, RtecScheduler::RT_Info *>; -template class ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX>; -template class ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, ACE_SYNCH_MUTEX>; -template class ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX>; -template class TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; -template class TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; -template class TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; +template class ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX>; +template class ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, TAO_SYNCH_MUTEX>; +template class ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX>; +template class TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; +template class TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; +template class TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; template class TAO_RSE_Priority_Visitor<TAO_MUF_Reconfig_Sched_Strategy>; -template class TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; -template class TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; +template class TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; +template class TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; template class TAO_RSE_Utilization_Visitor<TAO_MUF_Reconfig_Sched_Strategy>; # endif /* __GNUC__ */ #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) @@ -344,32 +344,32 @@ template class TAO_RSE_Utilization_Visitor<TAO_MUF_Reconfig_Sched_Strategy>; #pragma instantiate ACE_Auto_Basic_Ptr<RtecScheduler::RT_Info> #pragma instantiate ACE_Auto_Basic_Ptr<TAO_Reconfig_Scheduler_Entry> #pragma instantiate ACE_Equal_To<int> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> #pragma instantiate ACE_Hash_Map_Entry<int, RtecScheduler::Config_Info *> #pragma instantiate ACE_Hash_Map_Entry<int, RtecScheduler::Dependency_Set *> #pragma instantiate ACE_Hash_Map_Entry<int, RtecScheduler::RT_Info *> -#pragma instantiate ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX> #pragma instantiate ACE_RB_Tree_Node<const char *, RtecScheduler::RT_Info *> -#pragma instantiate ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> #pragma instantiate TAO_RSE_Priority_Visitor<TAO_MUF_Reconfig_Sched_Strategy> -#pragma instantiate TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> #pragma instantiate TAO_RSE_Utilization_Visitor<TAO_MUF_Reconfig_Sched_Strategy> # endif /* __GNUC__ */ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.h b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.h index 2273a41dd1b..d04423f9799 100644 --- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.h +++ b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.h @@ -66,7 +66,7 @@ private: (__GNUC__ == 2 && defined (__GNUC_MINOR__) && __GNUC_MINOR__ >= 8) typedef TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, - ACE_SYNCH_MUTEX> RECONFIG_SCHED_TYPE; + TAO_SYNCH_MUTEX> RECONFIG_SCHED_TYPE; #endif /* __GNUC__ */ diff --git a/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp b/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp index 50de0f51ab7..206b11b4ba6 100644 --- a/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp +++ b/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp @@ -12,7 +12,7 @@ ACE_RCSID(Filter, Filter, "$Id$") #define EVENTS_TO_SEND 30 #define EVENTS_EXPECTED_TO_RECEIVE 9*4 // 2 consumers get the same events from 2 suppliers - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> g_result_count = 0; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> g_result_count = 0; FilterClient::FilterClient (void) :done_ (0) @@ -512,10 +512,10 @@ Filter_StructuredPushSupplier::disconnect_structured_push_supplier (CORBA::Envir #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp b/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp index 54f4599fe63..b14cbe25f69 100644 --- a/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp +++ b/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp @@ -16,7 +16,7 @@ ACE_RCSID(Notify, Subscribe, "$Id$") #define EVENT_COUNT 4 // number of events we expect the consumer to get from the EC - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> g_result_count = 0; // we wait for 4 events. + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> g_result_count = 0; // we wait for 4 events. Subscribe::Subscribe (void) { @@ -459,10 +459,10 @@ Subscribe_StructuredPushSupplier::disconnect_structured_push_supplier (CORBA::En #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp b/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp index 8341839c1e9..db2b99272e9 100644 --- a/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp +++ b/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp @@ -23,7 +23,7 @@ int config_run = 0; int parse_args (int argc, char *argv[]); -typedef TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> RECONFIG_SCHED_TYPE; +typedef TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> RECONFIG_SCHED_TYPE; int main (int argc, char* argv[]) @@ -428,32 +428,32 @@ template class ACE_Auto_Basic_Ptr<RtecScheduler::Config_Info>; template class ACE_Auto_Basic_Ptr<RtecScheduler::RT_Info>; template class ACE_Auto_Basic_Ptr<TAO_Reconfig_Scheduler_Entry>; template class ACE_Equal_To<int>; -template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX>; template class ACE_Hash_Map_Entry<int, RtecScheduler::Config_Info *>; template class ACE_Hash_Map_Entry<int, RtecScheduler::Dependency_Set *>; template class ACE_Hash_Map_Entry<int, RtecScheduler::RT_Info *>; -template class ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX>; +template class ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX>; template class ACE_RB_Tree_Node<const char *, RtecScheduler::RT_Info *>; -template class ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX>; -template class ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, ACE_SYNCH_MUTEX>; -template class ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX>; -template class TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; -template class TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; -template class TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; +template class ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX>; +template class ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, TAO_SYNCH_MUTEX>; +template class ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX>; +template class TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; +template class TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; +template class TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; template class TAO_RSE_Priority_Visitor<TAO_MUF_Reconfig_Sched_Strategy>; -template class TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; -template class TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX>; +template class TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; +template class TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX>; template class TAO_RSE_Utilization_Visitor<TAO_MUF_Reconfig_Sched_Strategy>; # endif /* __GNUC__ */ @@ -468,32 +468,32 @@ template class TAO_RSE_Utilization_Visitor<TAO_MUF_Reconfig_Sched_Strategy>; #pragma instantiate ACE_Auto_Basic_Ptr<RtecScheduler::RT_Info> #pragma instantiate ACE_Auto_Basic_Ptr<TAO_Reconfig_Scheduler_Entry> #pragma instantiate ACE_Equal_To<int> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Config_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::Dependency_Set *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, RtecScheduler::RT_Info *, ACE_Hash<int>, ACE_Equal_To<int>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Config_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::Dependency_Set*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<int,RtecScheduler::RT_Info*,ACE_Hash<int>,ACE_Equal_To<int>,TAO_SYNCH_MUTEX> #pragma instantiate ACE_Hash_Map_Entry<int, RtecScheduler::Config_Info *> #pragma instantiate ACE_Hash_Map_Entry<int, RtecScheduler::Dependency_Set *> #pragma instantiate ACE_Hash_Map_Entry<int, RtecScheduler::RT_Info *> -#pragma instantiate ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX> #pragma instantiate ACE_RB_Tree_Node<const char *, RtecScheduler::RT_Info *> -#pragma instantiate ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree_Iterator_Base<char const *, RtecScheduler::RT_Info *, ACE_Less_Than<char const *>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_RB_Tree_Reverse_Iterator<const char *, RtecScheduler::RT_Info *, ACE_Less_Than<const char *>, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_Reconfig_Scheduler<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_Dependency_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_DFS_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> #pragma instantiate TAO_RSE_Priority_Visitor<TAO_MUF_Reconfig_Sched_Strategy> -#pragma instantiate TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, ACE_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_Propagation_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_RSE_SCC_Visitor<TAO_MUF_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> #pragma instantiate TAO_RSE_Utilization_Visitor<TAO_MUF_Reconfig_Sched_Strategy> # endif /* __GNUC__ */ diff --git a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp index 12969aa5ae3..15fc2136fd9 100644 --- a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp @@ -674,10 +674,10 @@ template class ACE_Connector<TAO_AV_TCP_Flow_Handler, ACE_SOCK_CONNECTOR>; template class ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler>; template class ACE_Map_Entry<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *>; -template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Iterator_Base<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX>; +template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Iterator_Base<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Acceptor<TAO_AV_TCP_Flow_Handler, ACE_SOCK_Acceptor, ACE_INET_Addr> @@ -685,10 +685,10 @@ template class ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flo #pragma instantiate ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> #pragma instantiate ACE_Map_Entry<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *> -#pragma instantiate ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Iterator_Base<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, ACE_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Iterator_Base<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<TAO_AV_TCP_Flow_Handler> *, TAO_SYNCH_RW_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp index fd0c238b99b..57816fc838e 100644 --- a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp @@ -1341,7 +1341,7 @@ template class ACE_Hash_Map_Iterator_Ex<CORBA::ULong,ACE_Hash_Map_Manager<CORBA: template class ACE_Hash_Map_Iterator<CORBA::ULong,ACE_Hash_Map_Manager<CORBA::ULong,TAO_SFP_Fragment_Table_Entry*,ACE_Null_Mutex> *,ACE_Null_Mutex>; template class ACE_Hash_Map_Reverse_Iterator<CORBA::ULong,ACE_Hash_Map_Manager<CORBA::ULong,TAO_SFP_Fragment_Table_Entry*,ACE_Null_Mutex> *,ACE_Null_Mutex>; -template class ACE_Singleton<TAO_SFP_Base, ACE_SYNCH_MUTEX>; +template class ACE_Singleton<TAO_SFP_Base, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_DNode<TAO_SFP_Fragment_Node> @@ -1366,7 +1366,7 @@ template class ACE_Singleton<TAO_SFP_Base, ACE_SYNCH_MUTEX>; #pragma instantiate ACE_Hash_Map_Iterator<CORBA::ULong,ACE_Hash_Map_Manager<CORBA::ULong,TAO_SFP_Fragment_Table_Entry*,ACE_Null_Mutex> *,ACE_Null_Mutex> #pragma instantiate ACE_Hash_Map_Reverse_Iterator<CORBA::ULong,ACE_Hash_Map_Manager<CORBA::ULong,TAO_SFP_Fragment_Table_Entry*,ACE_Null_Mutex> *,ACE_Null_Mutex> -#pragma instantiate ACE_Singleton<TAO_SFP_Base, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<TAO_SFP_Base, TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ ACE_FACTORY_DEFINE (AV, TAO_AV_SFP_Factory) diff --git a/TAO/orbsvcs/orbsvcs/AV/sfp.h b/TAO/orbsvcs/orbsvcs/AV/sfp.h index 6338985a24f..34686a58231 100644 --- a/TAO/orbsvcs/orbsvcs/AV/sfp.h +++ b/TAO/orbsvcs/orbsvcs/AV/sfp.h @@ -193,7 +193,7 @@ protected: }; // Beware the SFP_Base code relies on the Singleton being initialized. -typedef ACE_Singleton <TAO_SFP_Base,ACE_SYNCH_MUTEX> TAO_SFP_BASE; +typedef ACE_Singleton <TAO_SFP_Base,TAO_SYNCH_MUTEX> TAO_SFP_BASE; class TAO_AV_Export TAO_SFP_Object : public TAO_AV_Protocol_Object { diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp index dc108b20904..1fd2e3cd945 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp @@ -164,7 +164,7 @@ CC_LockSet::unlock (CosConcurrencyControl::lock_mode mode, CC_LockModeEnum lm = lmconvert (mode); - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->mlock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mlock_); if (lock_[lm] == 0) // This lock is not held. ACE_THROW (CosConcurrencyControl::LockNotHeld()); @@ -225,7 +225,7 @@ CC_LockSet::change_mode (CosConcurrencyControl::lock_mode held_mode, int CC_LockSet::lock_i (CC_LockModeEnum lm) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mlock_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mlock_, 1); // If the lock is not compatible with the locks we hold allready or // there is lock requests in the queue we cannot grant the lock and // thus we queue the request. Otherwise update the lock count. @@ -246,7 +246,7 @@ CC_LockSet::lock_i (CC_LockModeEnum lm) int CC_LockSet::try_lock_i (CC_LockModeEnum lm) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mlock_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mlock_, 1); // If the lock we try is compatible with the locks we hold we just // opdates the count. Otherwise we return false. if (compatible (lm) == 0) @@ -265,7 +265,7 @@ int CC_LockSet::change_mode_i (CC_LockModeEnum lm_held, CC_LockModeEnum lm_new) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mlock_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mlock_, 1); // If the new mode is compatible with the modes we hold we change // the counts for the two locks. If not we must queue the new // request. We can decrement the count for the old mode without @@ -292,7 +292,7 @@ CC_LockSet::change_mode_i (CC_LockModeEnum lm_held, int CC_LockSet::lock_held (CC_LockModeEnum lm) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mlock_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mlock_, 1); if (lock_[lm] > 0) return 1; else diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h index 309fb762f60..f647a2e13da 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h @@ -172,7 +172,7 @@ private: // Mapping between requested and held lock modes. Used by compatible // (...). Uses the internal enumeration as indices. - ACE_SYNCH_MUTEX mlock_; + TAO_SYNCH_MUTEX mlock_; // Lock to ensure that race conditions does not occur. ACE_Unbounded_Queue <CC_LockModeEnum> lock_queue_; diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp index 1d857c61366..e91e8fbc399 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp @@ -34,7 +34,7 @@ CC_LockSetFactory::create (CORBA::Environment &ACE_TRY_ENV) { CC_LockSet *ls = 0; - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, CosConcurrencyControl::LockSet::_nil ()); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CosConcurrencyControl::LockSet::_nil ()); ACE_NEW_THROW_EX (ls, CC_LockSet, @@ -51,7 +51,7 @@ CC_LockSetFactory::create_related (CosConcurrencyControl::LockSet_ptr which, { CC_LockSet *ls = 0; - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, CosConcurrencyControl::LockSet::_nil ()); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CosConcurrencyControl::LockSet::_nil ()); // @@ I commented out the following statement becuase it doesn't make any // sense at all. -- Nanbor diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h index 133cbe25e7b..ad2e6e6b2a5 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h @@ -55,7 +55,7 @@ public: ACE_THROW_SPEC ((CORBA::SystemException)); private: - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Lock to serialize the access to the factory. }; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp index c48b8bfa718..83a7deaa407 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp @@ -480,12 +480,12 @@ TAO_CEC_Default_Factory::create_proxy_push_consumer_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x001) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x002) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, @@ -500,12 +500,12 @@ TAO_CEC_Default_Factory::create_proxy_push_consumer_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x011) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x012) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, @@ -573,12 +573,12 @@ TAO_CEC_Default_Factory::create_proxy_pull_consumer_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x001) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x002) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, @@ -593,12 +593,12 @@ TAO_CEC_Default_Factory::create_proxy_pull_consumer_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x011) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x012) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, @@ -666,12 +666,12 @@ TAO_CEC_Default_Factory::create_proxy_push_supplier_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x001) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x002) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, @@ -686,12 +686,12 @@ TAO_CEC_Default_Factory::create_proxy_push_supplier_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x011) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x012) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, @@ -759,12 +759,12 @@ TAO_CEC_Default_Factory::create_proxy_pull_supplier_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x001) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x002) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, @@ -779,12 +779,12 @@ TAO_CEC_Default_Factory::create_proxy_pull_supplier_collection (TAO_CEC_EventCha return new TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x011) return new TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x012) return new TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, @@ -851,9 +851,9 @@ TAO_CEC_Default_Factory::create_consumer_lock (void) if (this->consumer_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; else if (this->consumer_lock_ == 1) - return new ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); else if (this->consumer_lock_ == 2) - return new ACE_Lock_Adapter<ACE_SYNCH_RECURSIVE_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); return 0; } @@ -869,9 +869,9 @@ TAO_CEC_Default_Factory::create_supplier_lock (void) if (this->supplier_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; else if (this->supplier_lock_ == 1) - return new ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); else if (this->supplier_lock_ == 2) - return new ACE_Lock_Adapter<ACE_SYNCH_RECURSIVE_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); return 0; } @@ -1044,11 +1044,11 @@ template class TAO_ESF_Proxy_RB_Tree_Iterator<TAO_CEC_ProxyPullSupplier>; template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, @@ -1090,11 +1090,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_RB_Tree_Iterator, @@ -1137,11 +1137,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_List_Iterator, @@ -1183,11 +1183,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_RB_Tree_Iterator, @@ -1230,19 +1230,19 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_List<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPushSupplier>, TAO_CEC_PushSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Write_Guard< TAO_ESF_Proxy_List<TAO_CEC_ProxyPushConsumer>, TAO_CEC_PushConsumer_List_Iterator, @@ -1263,19 +1263,19 @@ template class TAO_ESF_Copy_On_Write_Write_Guard< template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Write_Guard< TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, @@ -1492,11 +1492,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_List_Iterator, @@ -1538,11 +1538,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullConsumer, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullConsumer>, TAO_CEC_PullConsumer_RB_Tree_Iterator, @@ -1585,11 +1585,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_List<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_List_Iterator, @@ -1631,11 +1631,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_CEC_ProxyPullSupplier, TAO_ESF_Proxy_RB_Tree<TAO_CEC_ProxyPullSupplier>, TAO_CEC_PullSupplier_RB_Tree_Iterator, diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp index c7ee0ca988f..7c91e11ae66 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp @@ -103,10 +103,10 @@ TAO_CEC_Push_Command::execute (CORBA::Environment& ACE_TRY_ENV) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Locked_Data_Block<ACE_Lock_Adapter<ACE_SYNCH_MUTEX> >; +template class ACE_Locked_Data_Block<ACE_Lock_Adapter<TAO_SYNCH_MUTEX> >; #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Locked_Data_Block<ACE_Lock_Adapter<ACE_SYNCH_MUTEX> > +#pragma instantiate ACE_Locked_Data_Block<ACE_Lock_Adapter<TAO_SYNCH_MUTEX> > #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h index 35752cb37f3..7fa9ec0ea3b 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h @@ -51,7 +51,7 @@ private: ACE_Allocator *allocator_; // An per-task allocator - ACE_Locked_Data_Block<ACE_Lock_Adapter<ACE_SYNCH_MUTEX> > data_block_; + ACE_Locked_Data_Block<ACE_Lock_Adapter<TAO_SYNCH_MUTEX> > data_block_; // Helper data structure to minimize memory allocations... }; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp index 5f6bf9afbc8..6a96e0dbcad 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp @@ -24,7 +24,7 @@ TAO_CEC_MT_Dispatching::TAO_CEC_MT_Dispatching (int nthreads, void TAO_CEC_MT_Dispatching::activate (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->active_ != 0) return; @@ -48,7 +48,7 @@ TAO_CEC_MT_Dispatching::activate (void) void TAO_CEC_MT_Dispatching::shutdown (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->active_ == 0) return; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h index b5c2d86e0ff..e9a1cdab50c 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h @@ -77,7 +77,7 @@ private: TAO_CEC_Dispatching_Task task_; // The dispatching task - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synchronize access to internal data int active_; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp index 7456d9e6edf..1932bb080bb 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp @@ -145,7 +145,7 @@ TAO_CEC_ProxyPullSupplier::push (const CORBA::Any &event, if (this->is_connected () == 0) return; - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->queue_lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->queue_lock_); // Ignore errors (void) this->queue_.enqueue_tail (event); @@ -161,7 +161,7 @@ TAO_CEC_ProxyPullSupplier::pull (CORBA::Environment &ACE_TRY_ENV) if (this->is_connected () == 0) ACE_THROW_RETURN (CosEventComm::Disconnected (), 0); - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, queue_lock_, 0); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, queue_lock_, 0); while (this->queue_.is_empty ()) { this->wait_not_empty_.wait (); @@ -183,7 +183,7 @@ TAO_CEC_ProxyPullSupplier::try_pull (CORBA::Boolean_out has_event, if (this->is_connected () == 0) ACE_THROW_RETURN (CosEventComm::Disconnected (), 0); - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, queue_lock_, 0); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, queue_lock_, 0); CORBA::Any any; if (this->queue_.is_empty ()) { diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h index 1ea4a5cc5ad..a84eaf99687 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h @@ -144,8 +144,8 @@ private: PortableServer::POA_var default_POA_; // Store the default POA. - ACE_SYNCH_MUTEX queue_lock_; - ACE_SYNCH_CONDITION wait_not_empty_; + TAO_SYNCH_MUTEX queue_lock_; + TAO_SYNCH_CONDITION wait_not_empty_; ACE_Unbounded_Queue<CORBA::Any> queue_; // Use a message queue to pass the }; diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp index c1a095184e5..4f45d19870b 100644 --- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp +++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp @@ -666,8 +666,8 @@ YY_DECL #line 50 "ETCL/ETCL.ll" - static ACE_SYNCH_MUTEX mutex; - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, mutex, -1); + static TAO_SYNCH_MUTEX mutex; + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, mutex, -1); TAO_ETCL_Lex_State_Guard lex_helper (state); diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp.diff b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp.diff index 5b87c3845f4..df4a1f69dc8 100644 --- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp.diff +++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp.diff @@ -37,8 +37,8 @@ #line 50 "ETCL/ETCL.ll" -+ static ACE_SYNCH_MUTEX mutex; -+ ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, mutex, -1); ++ static TAO_SYNCH_MUTEX mutex; ++ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, mutex, -1); + TAO_ETCL_Lex_State_Guard lex_helper (state); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp index cd12443f411..ca109793798 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp @@ -132,7 +132,7 @@ TAO_EC_ObserverStrategy* TAO_EC_Basic_Factory::create_observer_strategy (TAO_EC_Event_Channel *ec) { ACE_Lock* lock; - ACE_NEW_RETURN (lock, ACE_Lock_Adapter<ACE_SYNCH_MUTEX>, 0); + ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, 0); return new TAO_EC_Basic_ObserverStrategy (ec, lock); } @@ -191,7 +191,7 @@ TAO_EC_Basic_Factory::destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSu ACE_Lock* TAO_EC_Basic_Factory::create_consumer_lock (void) { - return new ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); } void @@ -203,7 +203,7 @@ TAO_EC_Basic_Factory::destroy_consumer_lock (ACE_Lock* x) ACE_Lock* TAO_EC_Basic_Factory::create_supplier_lock (void) { - return new ACE_Lock_Adapter<ACE_SYNCH_RECURSIVE_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); } void diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp index df644578568..159558ab75b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp @@ -651,7 +651,7 @@ TAO_EC_Default_Factory::create_observer_strategy (TAO_EC_Event_Channel *ec) { // @@ The lock should also be under control of the user... ACE_Lock* lock; - ACE_NEW_RETURN (lock, ACE_Lock_Adapter<ACE_SYNCH_MUTEX>, 0); + ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, 0); return new TAO_EC_Basic_ObserverStrategy (ec, lock); } return 0; @@ -699,12 +699,12 @@ TAO_EC_Default_Factory::create_proxy_push_consumer_collection (TAO_EC_Event_Chan return new TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x001) return new TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x002) return new TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, @@ -719,12 +719,12 @@ TAO_EC_Default_Factory::create_proxy_push_consumer_collection (TAO_EC_Event_Chan return new TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x011) return new TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->consumer_collection_ == 0x012) return new TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, @@ -792,12 +792,12 @@ TAO_EC_Default_Factory::create_proxy_push_supplier_collection (TAO_EC_Event_Chan return new TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x001) return new TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x002) return new TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, @@ -812,12 +812,12 @@ TAO_EC_Default_Factory::create_proxy_push_supplier_collection (TAO_EC_Event_Chan return new TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x011) return new TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); else if (this->supplier_collection_ == 0x012) return new TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, @@ -884,9 +884,9 @@ TAO_EC_Default_Factory::create_consumer_lock (void) if (this->consumer_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; else if (this->consumer_lock_ == 1) - return new ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); else if (this->consumer_lock_ == 2) - return new ACE_Lock_Adapter<ACE_SYNCH_RECURSIVE_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); return 0; } @@ -902,9 +902,9 @@ TAO_EC_Default_Factory::create_supplier_lock (void) if (this->supplier_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; else if (this->supplier_lock_ == 1) - return new ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); else if (this->supplier_lock_ == 2) - return new ACE_Lock_Adapter<ACE_SYNCH_RECURSIVE_MUTEX> (); + return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); return 0; } @@ -1032,11 +1032,11 @@ template class TAO_ESF_Proxy_RB_Tree_Iterator<TAO_EC_ProxyPushSupplier>; template class TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, @@ -1078,11 +1078,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushConsumer, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_RB_Tree_Iterator, @@ -1125,11 +1125,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_List_Iterator, @@ -1171,11 +1171,11 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Read<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write<TAO_EC_ProxyPushSupplier, TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_RB_Tree_Iterator, @@ -1218,19 +1218,19 @@ template class TAO_ESF_Shutdown_Command< template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_List_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Read_Guard< TAO_ESF_Proxy_RB_Tree<TAO_EC_ProxyPushSupplier>, TAO_EC_Supplier_RB_Tree_Iterator, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class TAO_ESF_Copy_On_Write_Write_Guard< TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>, TAO_EC_Consumer_List_Iterator, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp index f1d15c62827..9ca2612815c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp @@ -116,10 +116,10 @@ TAO_EC_Push_Command::execute (CORBA::Environment& ACE_TRY_ENV) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Locked_Data_Block<ACE_Lock_Adapter<ACE_SYNCH_MUTEX> >; +template class ACE_Locked_Data_Block<ACE_Lock_Adapter<TAO_SYNCH_MUTEX> >; #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Locked_Data_Block<ACE_Lock_Adapter<ACE_SYNCH_MUTEX> > +#pragma instantiate ACE_Locked_Data_Block<ACE_Lock_Adapter<TAO_SYNCH_MUTEX> > #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h index a84aa3995fc..5d2c9510957 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h @@ -66,7 +66,7 @@ private: ACE_Allocator *allocator_; /// Helper data structure to minimize memory allocations... - ACE_Locked_Data_Block<ACE_Lock_Adapter<ACE_SYNCH_MUTEX> > data_block_; + ACE_Locked_Data_Block<ACE_Lock_Adapter<TAO_SYNCH_MUTEX> > data_block_; /// The queue TAO_EC_Queue the_queue_; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp index 2edec1c6e36..630b85d616a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp @@ -72,7 +72,7 @@ TAO_EC_Gateway_IIOP::init (RtecEventChannelAdmin::EventChannel_ptr rmt_ec, RtecEventChannelAdmin::EventChannel_ptr lcl_ec, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->init_i (rmt_ec, lcl_ec, ACE_TRY_ENV); } @@ -94,7 +94,7 @@ TAO_EC_Gateway_IIOP::init_i (RtecEventChannelAdmin::EventChannel_ptr rmt_ec, void TAO_EC_Gateway_IIOP::close (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->close_i (ACE_TRY_ENV); } @@ -151,7 +151,7 @@ TAO_EC_Gateway_IIOP::update_consumer ( if (c_qos.dependencies.length () <= 1) return; - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->busy_count_ != 0) { @@ -396,7 +396,7 @@ TAO_EC_Gateway_IIOP::push (const RtecEventComm::EventSet &events, } { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->busy_count_++; } @@ -433,7 +433,7 @@ TAO_EC_Gateway_IIOP::push (const RtecEventComm::EventSet &events, } { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->busy_count_--; @@ -449,7 +449,7 @@ TAO_EC_Gateway_IIOP::push (const RtecEventComm::EventSet &events, int TAO_EC_Gateway_IIOP::shutdown (CORBA::Environment& ACE_TRY_ENV) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, -1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); this->close_i (ACE_TRY_ENV); ACE_CHECK_RETURN (-1); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h index 615bdd03291..25f04944d38 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h @@ -139,7 +139,7 @@ protected: protected: /// Lock to synchronize internal changes - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; /// How many threads are running push() we cannot make changes until /// that reaches 0 diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp index b60270142dd..1704b9adf26 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp @@ -23,7 +23,7 @@ TAO_EC_Gateway_Sched::init (RtecEventChannelAdmin::EventChannel_ptr rmt_ec, const char* rmt_name, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->init_i (rmt_ec, lcl_ec, ACE_TRY_ENV); ACE_CHECK; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp index 7ab82780cc8..f18ccc36d93 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp @@ -1217,32 +1217,32 @@ TAO_ECG_Mcast_EH::Observer::update_supplier ( #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX,CORBA::ULong>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX,CORBA::ULong>; -template class ACE_Hash_Map_Manager<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX>; template class ACE_Hash_Map_Entry<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*>; template class ACE_Hash<TAO_ECG_UDP_Request_Index>; template class ACE_Equal_To<TAO_ECG_UDP_Request_Index>; -template class ACE_Hash_Map_Iterator_Base_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX>; #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX,CORBA::ULong> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX,CORBA::ULong> -#pragma instantiate ACE_Hash_Map_Manager<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX> #pragma instantiate ACE_Hash_Map_Entry<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*> #pragma instantiate ACE_Hash<TAO_ECG_UDP_Request_Index> #pragma instantiate ACE_Equal_To<TAO_ECG_UDP_Request_Index> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator<TAO_ECG_UDP_Request_Index,TAO_ECG_UDP_Request_Entry*,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, ACE_Hash<TAO_ECG_UDP_Request_Index>, ACE_Equal_To<TAO_ECG_UDP_Request_Index>, TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h index 2bd5c358116..0262262c3ec 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h @@ -248,7 +248,7 @@ public: private: /// The request id.... - ACE_Atomic_Op<ACE_SYNCH_MUTEX,CORBA::ULong> request_id_generator_; + ACE_Atomic_Op<TAO_SYNCH_MUTEX,CORBA::ULong> request_id_generator_; /// The datagram.... ACE_SOCK_Dgram dgram_; @@ -493,7 +493,7 @@ private: typedef ACE_Hash_Map_Manager<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*, - ACE_SYNCH_MUTEX> Request_Map; + TAO_SYNCH_MUTEX> Request_Map; typedef ACE_Hash_Map_Entry<TAO_ECG_UDP_Request_Index, TAO_ECG_UDP_Request_Entry*> Request_Map_Entry; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp index aee0c5db1d1..abeeba51cf9 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp @@ -24,7 +24,7 @@ TAO_EC_MT_Dispatching::TAO_EC_MT_Dispatching (int nthreads, void TAO_EC_MT_Dispatching::activate (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->active_ != 0) return; @@ -51,7 +51,7 @@ TAO_EC_MT_Dispatching::activate (void) void TAO_EC_MT_Dispatching::shutdown (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->active_ == 0) return; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h index 439c609bcf6..44ea2f5fa4a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h @@ -81,7 +81,7 @@ private: TAO_EC_Dispatching_Task task_; /// Synchronize access to internal data - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; /// Are the threads running? int active_; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp index 78141e2bc4e..a817c0fedce 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp @@ -40,7 +40,7 @@ TAO_EC_Per_Supplier_Filter::~TAO_EC_Per_Supplier_Filter (void) void TAO_EC_Per_Supplier_Filter::bind (TAO_EC_ProxyPushConsumer* consumer) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->consumer_ != 0) return; @@ -51,7 +51,7 @@ TAO_EC_Per_Supplier_Filter::bind (TAO_EC_ProxyPushConsumer* consumer) void TAO_EC_Per_Supplier_Filter::unbind (TAO_EC_ProxyPushConsumer* consumer) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->consumer_ == 0 || this->consumer_ != consumer) return; @@ -74,7 +74,7 @@ void TAO_EC_Per_Supplier_Filter::connected (TAO_EC_ProxyPushSupplier* supplier, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->consumer_ == 0) return; @@ -112,7 +112,7 @@ void TAO_EC_Per_Supplier_Filter::reconnected (TAO_EC_ProxyPushSupplier* supplier, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->consumer_ == 0) return; @@ -170,7 +170,7 @@ TAO_EC_Per_Supplier_Filter::push (const RtecEventComm::EventSet& event, // disconnected. // @@ This lock could be optimized if we knew that the // scheduling strategy is trivial... - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->consumer_ == 0) return; @@ -197,7 +197,7 @@ TAO_EC_Per_Supplier_Filter::push (const RtecEventComm::EventSet& event, CORBA::ULong TAO_EC_Per_Supplier_Filter::_incr_refcnt (void) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, 0); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); this->refcnt_++; return this->refcnt_; @@ -207,7 +207,7 @@ CORBA::ULong TAO_EC_Per_Supplier_Filter::_decr_refcnt (void) { { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, 0); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); this->refcnt_--; if (this->refcnt_ != 0) diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h index 2dfb9c95c1e..8bde52ff087 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h @@ -77,7 +77,7 @@ private: CORBA::ULong refcnt_; /// Locking - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; }; // **************************************************************** diff --git a/TAO/orbsvcs/orbsvcs/Event/Event_Manip.cpp b/TAO/orbsvcs/orbsvcs/Event/Event_Manip.cpp index ae15bb3aa32..0d8e97cb479 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Event_Manip.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/Event_Manip.cpp @@ -42,7 +42,7 @@ TAO_EC_Event_Set::_create (RtecEventComm::EventSet& event_set) CORBA::ULong TAO_EC_Event_Set::_incr_refcnt (void) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, 0); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); return this->refcnt_++; } @@ -50,7 +50,7 @@ CORBA::ULong TAO_EC_Event_Set::_decr_refcnt (void) { { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, 0); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); this->refcnt_--; if (this->refcnt_ != 0) return this->refcnt_; diff --git a/TAO/orbsvcs/orbsvcs/Event/Event_Manip.h b/TAO/orbsvcs/orbsvcs/Event/Event_Manip.h index 9c66ad3dd78..d0883c9741e 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Event_Manip.h +++ b/TAO/orbsvcs/orbsvcs/Event/Event_Manip.h @@ -77,7 +77,7 @@ private: RtecEventComm::Event* buffer_; // The buffer. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synchronize access to the class internals. CORBA::ULong refcnt_; diff --git a/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp b/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp index 9b0da7996b3..a3780ab8ec9 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp @@ -30,7 +30,7 @@ template class ACE_Cached_Mem_Pool_Node<ACE_ES_Dispatch_Request_Chunk>; template class ACE_Locked_Free_List<ACE_Cached_Mem_Pool_Node<ACE_ES_Dispatch_Request_Chunk>, ACE_Null_Mutex>; template class ACE_Free_List<ACE_Cached_Mem_Pool_Node<ACE_ES_Dispatch_Request_Chunk> >; template class ACE_Cached_Allocator<ACE_ES_Dispatch_Request_Chunk, ACE_MEMORY_POOL_MUTEX>; -template class ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,ACE_SYNCH_MUTEX>; +template class ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,TAO_SYNCH_MUTEX>; #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) @@ -38,6 +38,6 @@ template class ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,ACE_SYNCH_MUTEX>; #pragma instantiate ACE_Cached_Mem_Pool_Node<ACE_ES_Dispatch_Request_Chunk> #pragma instantiate ACE_Locked_Free_List<ACE_Cached_Mem_Pool_Node<ACE_ES_Dispatch_Request_Chunk>, ACE_Null_Mutex> #pragma instantiate ACE_Free_List<ACE_Cached_Mem_Pool_Node<ACE_ES_Dispatch_Request_Chunk> > -#pragma instantiate ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h b/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h index 9b1edab3f44..a707a70341c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h +++ b/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h @@ -34,7 +34,7 @@ #else // Use the same object for each thread. Therefore, we have to use // real synchronization. - typedef ACE_Thread_Mutex ACE_MEMORY_POOL_MUTEX; + typedef TAO_SYNCH_MUTEX ACE_MEMORY_POOL_MUTEX; #endif /* ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION || !ACE_HAS_THREADS */ typedef char @@ -57,7 +57,7 @@ public: // ************************************************************ -typedef ACE_Malloc<ACE_LOCAL_MEMORY_POOL, ACE_SYNCH_MUTEX> ACE_ES_Event_Allocator; +typedef ACE_Malloc<ACE_LOCAL_MEMORY_POOL, TAO_SYNCH_MUTEX> ACE_ES_Event_Allocator; class TAO_RTOLDEvent_Export ACE_ES_Memory_Pools // = TITLE @@ -76,7 +76,7 @@ public: static void *new_Dispatch_Request (void); static void delete_Dispatch_Request (void *); - typedef ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,ACE_SYNCH_MUTEX> Dispatch_Request_; + typedef ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,TAO_SYNCH_MUTEX> Dispatch_Request_; }; #if defined (__ACE_INLINE__) diff --git a/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h b/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h index 7f6c445b5b5..5269eff7131 100644 --- a/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h +++ b/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h @@ -83,14 +83,14 @@ const u_long ACE_Scheduler_MIN_SUB_PRIORITY = ACE_Message_Block::MB_NORMAL; #if defined(TAO_EC_USE_RECURSIVE_MUTEX) -typedef ACE_SYNCH_RECURSIVE_MUTEX ACE_ES_MUTEX; +typedef TAO_SYNCH_RECURSIVE_MUTEX ACE_ES_MUTEX; typedef ACE_Guard<ACE_ES_RECURSIVE_MUTEX> ACE_ES_GUARD; #else -typedef ACE_SYNCH_MUTEX ACE_ES_MUTEX; +typedef TAO_SYNCH_MUTEX ACE_ES_MUTEX; typedef ACE_Guard<ACE_ES_MUTEX> ACE_ES_GUARD; #endif -typedef ACE_SYNCH_RW_MUTEX ACE_ES_RW_LOCK; +typedef TAO_SYNCH_RW_MUTEX ACE_ES_RW_LOCK; typedef ACE_Write_Guard<ACE_ES_RW_LOCK> ACE_ES_WGUARD; typedef ACE_Read_Guard<ACE_ES_RW_LOCK> ACE_ES_RGUARD; diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.cpp index 37acf0d0490..696af20d676 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.cpp @@ -17,7 +17,7 @@ TAO_LB_Minimum_Dispersion_Strategy::TAO_LB_Minimum_Dispersion_Strategy (void) TAO_LB_Minimum_Dispersion_Strategy::~TAO_LB_Minimum_Dispersion_Strategy (void) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); @@ -41,7 +41,7 @@ TAO_LB_Minimum_Dispersion_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) { for ( ; ; ) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, CORBA::Object::_nil ()); @@ -73,9 +73,9 @@ TAO_LB_Minimum_Dispersion_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) proxy->replica (); { - ACE_Reverse_Lock<ACE_SYNCH_MUTEX> reverse_lock (this->lock_); + ACE_Reverse_Lock<TAO_SYNCH_MUTEX> reverse_lock (this->lock_); - ACE_GUARD_RETURN (ACE_Reverse_Lock<ACE_SYNCH_MUTEX>, + ACE_GUARD_RETURN (ACE_Reverse_Lock<TAO_SYNCH_MUTEX>, reverse_guard, reverse_lock, CORBA::Object::_nil ()); @@ -109,7 +109,7 @@ TAO_LB_Minimum_Dispersion_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) int TAO_LB_Minimum_Dispersion_Strategy::insert (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); @@ -120,7 +120,7 @@ TAO_LB_Minimum_Dispersion_Strategy::insert (TAO_LB_ReplicaProxy *proxy) int TAO_LB_Minimum_Dispersion_Strategy::remove (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); @@ -135,7 +135,7 @@ TAO_LB_Minimum_Dispersion_Strategy::load_changed (TAO_LB_ReplicaProxy *proxy, int send_load_advisory = 0; { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.h index bd78e0acc1f..fcf0b686ae3 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.h +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/Minimum_Dispersion.h @@ -67,7 +67,7 @@ private: TAO_LB_ReplicaProxySet proxies_; // Set containing the ReplicaProxy servants. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Lock used to ensure atomic access to state retained by this // class. }; diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.cpp index 9e7bbff3759..8dc15cbde74 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.cpp @@ -43,7 +43,7 @@ TAO_LB_ReplicaProxy::disconnect (CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((LoadBalancing::ReplicaProxy::NotConnected, CORBA::SystemException)) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); @@ -69,7 +69,7 @@ TAO_LB_ReplicaProxy::connect (TAO_LB_LoadBalancer *balancer, LoadBalancing::ReplicaProxy::NilReplica, CORBA::SystemException)) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.h index 68e8245a2b1..a4f60a41a06 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.h +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaProxy.h @@ -102,7 +102,7 @@ private: private: - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Mutex used to ensure access ReplicaProxy state is atomic. CORBA::Object_var replica_; diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.cpp index b537a3d572c..9c0c198c5d0 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.cpp @@ -18,7 +18,7 @@ TAO_LB_Round_Robin_Strategy::TAO_LB_Round_Robin_Strategy (void) TAO_LB_Round_Robin_Strategy::~TAO_LB_Round_Robin_Strategy (void) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); @@ -42,7 +42,7 @@ CORBA::Object_ptr TAO_LB_Round_Robin_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, CORBA::Object::_nil ()); @@ -86,7 +86,7 @@ TAO_LB_Round_Robin_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) int TAO_LB_Round_Robin_Strategy::insert (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); @@ -99,7 +99,7 @@ TAO_LB_Round_Robin_Strategy::insert (TAO_LB_ReplicaProxy *proxy) int TAO_LB_Round_Robin_Strategy::remove (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.h index 8abedbc2edb..523ff488d9e 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.h +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/Round_Robin_Strategy.h @@ -71,7 +71,7 @@ private: ACE_Unbounded_Set_Iterator<TAO_LB_ReplicaProxy *> next_replica_; - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Lock used to ensure access to state within this class is atomic. }; diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp index c8562e77eb2..9828cdae2ff 100644 --- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp @@ -102,23 +102,23 @@ LogMgr_i::remove (DsLogAdmin::LogId id) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Hash_Map_Entry<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var>; -template class ACE_Hash_Map_Manager<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Hash_Map_Entry<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var>; -#pragma instantiate ACE_Hash_Map_Manager<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Manager_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Manager<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Manager_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Reverse_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, TAO_SYNCH_MUTEX>; #endif /* ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA */ diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h index dbc6b31db9b..a3f0d8adf96 100644 --- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h +++ b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h @@ -69,7 +69,7 @@ public: protected: typedef ACE_Hash_Map_Manager <DsLogAdmin::LogId, - DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX> HASHMAP; + DsLogAdmin::BasicLog_var,TAO_SYNCH_MUTEX> HASHMAP; // Define the HASHMAP. HASHMAP hash_map_; diff --git a/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.cpp b/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.cpp index 37acf0d0490..696af20d676 100644 --- a/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.cpp +++ b/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.cpp @@ -17,7 +17,7 @@ TAO_LB_Minimum_Dispersion_Strategy::TAO_LB_Minimum_Dispersion_Strategy (void) TAO_LB_Minimum_Dispersion_Strategy::~TAO_LB_Minimum_Dispersion_Strategy (void) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); @@ -41,7 +41,7 @@ TAO_LB_Minimum_Dispersion_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) { for ( ; ; ) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, CORBA::Object::_nil ()); @@ -73,9 +73,9 @@ TAO_LB_Minimum_Dispersion_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) proxy->replica (); { - ACE_Reverse_Lock<ACE_SYNCH_MUTEX> reverse_lock (this->lock_); + ACE_Reverse_Lock<TAO_SYNCH_MUTEX> reverse_lock (this->lock_); - ACE_GUARD_RETURN (ACE_Reverse_Lock<ACE_SYNCH_MUTEX>, + ACE_GUARD_RETURN (ACE_Reverse_Lock<TAO_SYNCH_MUTEX>, reverse_guard, reverse_lock, CORBA::Object::_nil ()); @@ -109,7 +109,7 @@ TAO_LB_Minimum_Dispersion_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) int TAO_LB_Minimum_Dispersion_Strategy::insert (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); @@ -120,7 +120,7 @@ TAO_LB_Minimum_Dispersion_Strategy::insert (TAO_LB_ReplicaProxy *proxy) int TAO_LB_Minimum_Dispersion_Strategy::remove (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); @@ -135,7 +135,7 @@ TAO_LB_Minimum_Dispersion_Strategy::load_changed (TAO_LB_ReplicaProxy *proxy, int send_load_advisory = 0; { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); diff --git a/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.h b/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.h index bd78e0acc1f..fcf0b686ae3 100644 --- a/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.h +++ b/TAO/orbsvcs/orbsvcs/Minimum_Dispersion.h @@ -67,7 +67,7 @@ private: TAO_LB_ReplicaProxySet proxies_; // Set containing the ReplicaProxy servants. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Lock used to ensure atomic access to state retained by this // class. }; diff --git a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp index c46ba41c832..53675ab9e5c 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp @@ -13,7 +13,7 @@ template <class ITERATOR, class TABLE_ENTRY> TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::TAO_Bindings_Iterator (TAO_Hash_Naming_Context *context, ITERATOR *hash_iter, PortableServer::POA_ptr poa, - ACE_SYNCH_RECURSIVE_MUTEX &lock) + TAO_SYNCH_RECURSIVE_MUTEX &lock) : destroyed_ (0), context_ (context), hash_iter_ (hash_iter), @@ -57,7 +57,7 @@ TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_one (CosNaming::Binding_out b b = binding; - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -111,7 +111,7 @@ TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_n (CORBA::ULong how_many, CORBA::NO_MEMORY ()); ACE_CHECK_RETURN (0); // Obtain the lock. - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -170,7 +170,7 @@ template <class ITERATOR, class TABLE_ENTRY> void TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::destroy (CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h index 7dce456a5b4..66cbea7d01e 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h +++ b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h @@ -54,7 +54,7 @@ public: TAO_Bindings_Iterator (TAO_Hash_Naming_Context *context, ITERATOR *hash_iter, PortableServer::POA_ptr poa, - ACE_SYNCH_RECURSIVE_MUTEX &lock); + TAO_SYNCH_RECURSIVE_MUTEX &lock); // Constructor expects a pointer to a // dynamically allocated hash map iterator (destructor // deallocates hash map iterator). @@ -112,7 +112,7 @@ private: ITERATOR *hash_iter_; // A pointer to the hash map iterator. - ACE_SYNCH_RECURSIVE_MUTEX &lock_; + TAO_SYNCH_RECURSIVE_MUTEX &lock_; // Lock passed on from Naming Context to serialize access to the // internal data structure. diff --git a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp index 4938831be5a..0bce54e23c8 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp @@ -111,7 +111,7 @@ TAO_Hash_Naming_Context::bind (const CosNaming::Name& n, CORBA::Object_ptr obj, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); ACE_CHECK; @@ -165,7 +165,7 @@ TAO_Hash_Naming_Context::rebind (const CosNaming::Name& n, CORBA::Object_ptr obj, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); ACE_CHECK; @@ -221,7 +221,7 @@ TAO_Hash_Naming_Context::bind_context (const CosNaming::Name &n, CosNaming::NamingContext_ptr nc, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); ACE_CHECK; @@ -279,7 +279,7 @@ TAO_Hash_Naming_Context::rebind_context (const CosNaming::Name &n, CosNaming::NamingContext_ptr nc, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); ACE_CHECK; @@ -334,7 +334,7 @@ CORBA::Object_ptr TAO_Hash_Naming_Context::resolve (const CosNaming::Name& n, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); ACE_CHECK_RETURN (CORBA::Object::_nil ()); @@ -428,7 +428,7 @@ void TAO_Hash_Naming_Context::unbind (const CosNaming::Name& n, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, ace_mon, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); ACE_CHECK; @@ -474,7 +474,7 @@ CosNaming::NamingContext_ptr TAO_Hash_Naming_Context::bind_new_context (const CosNaming::Name& n, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -519,7 +519,7 @@ TAO_Hash_Naming_Context::bind_new_context (const CosNaming::Name& n, void TAO_Hash_Naming_Context::destroy (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h index 62826d54c09..5002530994b 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h +++ b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h @@ -208,7 +208,7 @@ protected: // all client CosNaming::NamingContext CORBA calls. // We need this pointer for reference counting. - ACE_SYNCH_RECURSIVE_MUTEX lock_; + TAO_SYNCH_RECURSIVE_MUTEX lock_; // Lock used to serialize access to the underlying data structure. int destroyed_; diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp index 66d99a2d925..7e563a5e3c6 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp @@ -40,7 +40,7 @@ template class ACE_Auto_Basic_Ptr<ACE_Hash_Map_With_Allocator<TAO_Persistent_Ind int TAO_Persistent_Context_Index::unbind (const char *poa_id) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, -1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); TAO_Persistent_Index_ExtId name (poa_id); TAO_Persistent_Index_IntId entry; @@ -59,7 +59,7 @@ TAO_Persistent_Context_Index::bind (const char *poa_id, ACE_UINT32 *&counter, TAO_Persistent_Context_Index::CONTEXT *hash_map) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, -1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); // Allocate memory for items to be stored in the table. size_t poa_id_len = ACE_OS::strlen (poa_id) + 1; diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h index 42a12062aac..94808f86f02 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h @@ -52,7 +52,7 @@ public: TAO_Persistent_IntId> CONTEXT; // Hash map used by Persistent Naming Context to keep its state. - typedef ACE_Allocator_Adapter <ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_SYNCH_MUTEX> + typedef ACE_Allocator_Adapter <ACE_Malloc <ACE_MMAP_MEMORY_POOL, TAO_SYNCH_MUTEX> > ALLOCATOR; // Allocator we will be using to make the Naming Service persistent. @@ -119,7 +119,7 @@ private: // Helper for <create_index> method: places hash table into an // allocated space. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Lock to prevent multiple threads from modifying entries in the // <index_> simultanneously. diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp index e2ddaf6eccc..41edb44f3f7 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp @@ -392,7 +392,7 @@ TAO_Persistent_Naming_Context::make_new_context (PortableServer::POA_ptr poa, CosNaming::NamingContext_ptr TAO_Persistent_Naming_Context::new_context (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -437,7 +437,7 @@ TAO_Persistent_Naming_Context::list (CORBA::ULong how_many, ACE_CHECK; // Obtain a lock before we proceed with the operation. - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp index 1984692283d..57782b697fb 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp @@ -193,7 +193,7 @@ TAO_Transient_Naming_Context::make_new_context (PortableServer::POA_ptr poa, CosNaming::NamingContext_ptr TAO_Transient_Naming_Context::new_context (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -238,7 +238,7 @@ TAO_Transient_Naming_Context::list (CORBA::ULong how_many, ACE_CHECK; // Obtain a lock before we proceed with the operation. - ACE_GUARD_THROW_EX (ACE_SYNCH_RECURSIVE_MUTEX, + ACE_GUARD_THROW_EX (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.cpp index b80b3b4e9c9..e160f649712 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.cpp @@ -102,10 +102,10 @@ TAO_Notify_AdminProperties::queue_full (void) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX,int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX,int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX,int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.h index c29e89bb4ed..43172179ecb 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_AdminProperties.h @@ -28,7 +28,7 @@ #include "Notify_Listeners.h" #include "notify_export.h" -typedef ACE_Atomic_Op <ACE_SYNCH_MUTEX,CORBA::Long> TAO_Notify_Property_Long; +typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX,CORBA::Long> TAO_Notify_Property_Long; class TAO_Notify_Export TAO_Notify_AdminProperties { diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp index 0dcf559d4ad..3f5d2a69711 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp @@ -51,23 +51,23 @@ visit_property (TAO_Property_Constraint* literal) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Manager<ACE_CString, const CORBA::Any*, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager<ACE_CString, const CORBA::Any*, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; template class ACE_Hash_Map_Entry <ACE_CString, const CORBA::Any*>; -template class ACE_Hash_Map_Iterator<ACE_CString, const CORBA::Any*, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<ACE_CString, const CORBA::Any*, ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator<ACE_CString, const CORBA::Any*, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator<ACE_CString, const CORBA::Any*, TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Hash_Map_Manager<ACE_CString, const CORBA::Any*, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Manager<ACE_CString, const CORBA::Any*, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; #pragma instantiate ACE_Hash_Map_Entry <ACE_CString, const CORBA::Any*>; -#pragma instantiate ACE_Hash_Map_Iterator<ACE_CString, const CORBA::Any*, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_CString, const CORBA::Any*, ACE_SYNCH_MUTEX>; -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Iterator<ACE_CString, const CORBA::Any*, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_CString, const CORBA::Any*, TAO_SYNCH_MUTEX>; +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, const CORBA::Any *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, TAO_SYNCH_MUTEX>; #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h index 5748c525103..256678ec3c9 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h @@ -40,7 +40,7 @@ class TAO_Notify_Export TAO_Notify_Constraint_Evaluator : public TAO_Constraint_ private: ACE_Hash_Map_Manager <ACE_CString, const CORBA::Any*, - ACE_SYNCH_MUTEX> property_lookup_; + TAO_SYNCH_MUTEX> property_lookup_; // Used to lookup property name and values }; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp index d4a44a0727a..f328a199504 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp @@ -163,7 +163,7 @@ TAO_Notify_Default_CO_Factory::create_event_channel_lock (CORBA::Environment &AC { ACE_Lock* lock; ACE_NEW_THROW_EX (lock, - ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (), + ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (), CORBA::NO_MEMORY ()); return lock; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp index aa80e6b62e2..7a8c23d97fc 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp @@ -57,13 +57,13 @@ TAO_Notify_Default_Collection_Factory::create_event_listener_list (CORBA::Enviro new TAO_ESF_Immediate_Changes<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, TAO_Notify_EventListener_List_Iterator, - ACE_SYNCH_MUTEX> (); + TAO_SYNCH_MUTEX> (); ACE_NEW_THROW_EX (listener_list, TAO_ESF_Immediate_Changes<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, TAO_Notify_EventListener_List_Iterator, - ACE_SYNCH_MUTEX> (), + TAO_SYNCH_MUTEX> (), CORBA::NO_MEMORY ());*/ // TODO: create other kinds of lists. } @@ -76,7 +76,7 @@ TAO_Notify_Default_Collection_Factory::create_update_listener_list (CORBA::Envir new TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, TAO_Notify_UpdateListener_List_Iterator, - ACE_SYNCH_MUTEX> (); // ACE_SYNCH_NULL_MUTEX + TAO_SYNCH_MUTEX> (); // ACE_SYNCH_NULL_MUTEX return listener_list; */ @@ -107,8 +107,8 @@ ACE_FACTORY_DEFINE (TAO_Notify, TAO_Notify_Default_Collection_Factory) template class TAO_ESF_Worker<TAO_Notify_EventListener>; template class TAO_ESF_Worker<TAO_Notify_UpdateListener>; -template class TAO_ESF_Immediate_Changes<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener *>, ACE_SYNCH_MUTEX>; -template class TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener *>, ACE_SYNCH_MUTEX>; +template class TAO_ESF_Immediate_Changes<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener *>, TAO_SYNCH_MUTEX>; +template class TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener *>, TAO_SYNCH_MUTEX>; template class TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener *>, ACE_Null_Mutex>; template class TAO_ESF_Copy_On_Write<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener *>, ACE_SYNCH>; @@ -132,17 +132,17 @@ template class TAO_ESF_Proxy_Collection<TAO_Notify_EventListener>; template class TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>; template class TAO_ESF_Proxy_Collection<TAO_Notify_UpdateListener>; -template class TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener*>, ACE_SYNCH_MUTEX>; +template class TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener*>, TAO_SYNCH_MUTEX>; -template class TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener*>, ACE_SYNCH_MUTEX>; +template class TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener*>, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate TAO_ESF_Worker<TAO_Notify_EventListener> #pragma instantiate TAO_ESF_Worker<TAO_Notify_UpdateListener> -#pragma instantiate TAO_ESF_Immediate_Changes<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener *>, ACE_SYNCH_MUTEX> -#pragma instantiate TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener *>, ACE_SYNCH_MUTEX> +#pragma instantiate TAO_ESF_Immediate_Changes<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener *>, TAO_SYNCH_MUTEX> +#pragma instantiate TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener *>, TAO_SYNCH_MUTEX> #pragma instantiate TAO_ESF_Immediate_Changes<TAO_Notify_UpdateListener, TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener *>, ACE_Null_Mutex> #pragma instantiate TAO_ESF_Copy_On_Write<TAO_Notify_EventListener, TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener *>, ACE_SYNCH> @@ -167,8 +167,8 @@ TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, #pragma instantiate TAO_ESF_Proxy_List<TAO_Notify_UpdateListener> #pragma instantiate TAO_ESF_Proxy_Collection<TAO_Notify_UpdateListener> -#pragma instantiate TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener*>, ACE_SYNCH_MUTEX> +#pragma instantiate TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_EventListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_EventListener*>, TAO_SYNCH_MUTEX> -#pragma instantiate TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener*>, ACE_SYNCH_MUTEX> +#pragma instantiate TAO_ESF_Copy_On_Write_Read_Guard<TAO_ESF_Proxy_List<TAO_Notify_UpdateListener>, ACE_Unbounded_Set_Iterator<TAO_Notify_UpdateListener*>, TAO_SYNCH_MUTEX> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Event.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Event.cpp index 7e6c8ae9105..bc5b4ca7ebc 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Event.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Event.cpp @@ -125,7 +125,7 @@ TAO_Notify_Event::TAO_Notify_Event (void) // stop_time_ (0), timeout_ (0) { - ACE_NEW (lock_, ACE_Lock_Adapter<ACE_SYNCH_MUTEX> ()); + ACE_NEW (lock_, ACE_Lock_Adapter<TAO_SYNCH_MUTEX> ()); } TAO_Notify_Event::~TAO_Notify_Event () diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Manager.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Manager.cpp index fffa0ca281d..35cdd5e100a 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Manager.cpp @@ -37,7 +37,7 @@ void TAO_Notify_Event_Manager::init (CORBA::Environment &ACE_TRY_ENV) { ACE_NEW_THROW_EX (this->lock_, - ACE_Lock_Adapter<ACE_SYNCH_MUTEX> (), + ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (), CORBA::NO_MEMORY ()); // Create members. @@ -155,25 +155,25 @@ TAO_Notify_Update_Worker::work (TAO_Notify_UpdateListener* listener, CORBA::Envi #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Hash_Map_Entry<TAO_Notify_EventType, TAO_Notify_EventListener_List *>; -template class ACE_Hash_Map_Manager<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager<TAO_Notify_EventType, TAO_Notify_EventListener_List *,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX>; template class ACE_Hash<TAO_Notify_EventType>; template class ACE_Equal_To<TAO_Notify_EventType>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Hash_Map_Entry<TAO_Notify_EventType, TAO_Notify_EventListener_List *> -#pragma instantiate ACE_Hash_Map_Manager<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager<TAO_Notify_EventType, TAO_Notify_EventListener_List *,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator<TAO_Notify_EventType, TAO_Notify_EventListener_List *,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_Notify_EventType, TAO_Notify_EventListener_List *,ACE_Hash<TAO_Notify_EventType>, ACE_Equal_To<TAO_Notify_EventType>,TAO_SYNCH_MUTEX> #pragma instantiate template ACE_Hash<TAO_Notify_EventType> #pragma instantiate template ACE_Equal_To<TAO_Notify_EventType> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Map.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Map.h index 1233c1ee741..d8098afb16a 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Map.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Event_Map.h @@ -103,7 +103,7 @@ public: protected: // = Typedefs typedef ACE_Hash_Map_Manager <TAO_Notify_EventType, - TAO_Notify_EventListener_List*, ACE_SYNCH_MUTEX> EVENT_RECIPIENT_MAP; + TAO_Notify_EventListener_List*, TAO_SYNCH_MUTEX> EVENT_RECIPIENT_MAP; // = Data Members EVENT_RECIPIENT_MAP event_recipient_map_; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.cpp index 466d35e838d..72beefedd0f 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.cpp @@ -121,24 +121,24 @@ TAO_Notify_FilterAdmin_i::remove_all_filters ( #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Hash_Map_Entry<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var>; -template class ACE_Hash_Map_Manager<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX>; template class TAO_Notify_ID_Pool_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::FilterIDSeq>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Hash_Map_Entry<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var>; -#pragma instantiate ACE_Hash_Map_Manager<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::Filter_var,ACE_Hash<CosNotifyFilter::FilterID>, ACE_Equal_To<CosNotifyFilter::FilterID>,TAO_SYNCH_MUTEX> #pragma instantiate TAO_Notify_ID_Pool_Ex<CosNotifyFilter::FilterID,CosNotifyFilter::FilterIDSeq> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.h index 3a1094ca61f..9f4977b7d04 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_FilterAdmin_i.h @@ -90,7 +90,7 @@ public: )); private: - typedef ACE_Hash_Map_Manager <CosNotifyFilter::FilterID, CosNotifyFilter::Filter_var, ACE_SYNCH_MUTEX> FILTER_LIST; + typedef ACE_Hash_Map_Manager <CosNotifyFilter::FilterID, CosNotifyFilter::Filter_var, TAO_SYNCH_MUTEX> FILTER_LIST; FILTER_LIST filter_list_; // List of filters diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.cpp index c7d2ccbb5a9..096fd3152ef 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.cpp @@ -420,13 +420,13 @@ CosNotifyFilter::CallbackIDSeq * TAO_Notify_Filter_i::get_callbacks ( #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Hash_Map_Entry<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr *>; -template class ACE_Hash_Map_Manager<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_SYNCH_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,TAO_SYNCH_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX>; template class ACE_Equal_To<CosNotifyFilter::ConstraintID>; @@ -440,13 +440,13 @@ template class ACE_Auto_Basic_Ptr<CosNotifyFilter::ConstraintInfoSeq>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Hash_Map_Entry<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*> -#pragma instantiate ACE_Hash_Map_Manager<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<CosNotifyFilter::ConstraintID,TAO_Notify_Filter_i::Notify_Constraint_Expr*,ACE_Hash<CosNotifyFilter::ConstraintID>, ACE_Equal_To<CosNotifyFilter::ConstraintID>,TAO_SYNCH_MUTEX> #pragma instantiate ACE_Array<TAO_Notify_Filter_i::Notify_Constraint_Expr*> #pragma instantiate ACE_Array_Base<TAO_Notify_Filter_i::Notify_Constraint_Expr*> diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.h index 61397f2fec7..5656ccf8617 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Filter_i.h @@ -193,13 +193,13 @@ private: ACE_Hash_Map_Manager <CosNotifyFilter::ConstraintID, ACE_NESTED_CLASS (TAO_Notify_Filter_i, Notify_Constraint_Expr*), - ACE_SYNCH_MUTEX> + TAO_SYNCH_MUTEX> constraint_expr_list_; // A list of the constraints stored in this filter. typedef ACE_Hash_Map_Iterator <CosNotifyFilter::ConstraintID, ACE_NESTED_CLASS (TAO_Notify_Filter_i, Notify_Constraint_Expr*), - ACE_SYNCH_MUTEX> + TAO_SYNCH_MUTEX> CONSTRAINT_EXPR_LIST_ITER; typedef ACE_Hash_Map_Entry<CosNotifyFilter::ConstraintID, diff --git a/TAO/orbsvcs/orbsvcs/ReplicaProxy.cpp b/TAO/orbsvcs/orbsvcs/ReplicaProxy.cpp index 9e7bbff3759..8dc15cbde74 100644 --- a/TAO/orbsvcs/orbsvcs/ReplicaProxy.cpp +++ b/TAO/orbsvcs/orbsvcs/ReplicaProxy.cpp @@ -43,7 +43,7 @@ TAO_LB_ReplicaProxy::disconnect (CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((LoadBalancing::ReplicaProxy::NotConnected, CORBA::SystemException)) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); @@ -69,7 +69,7 @@ TAO_LB_ReplicaProxy::connect (TAO_LB_LoadBalancer *balancer, LoadBalancing::ReplicaProxy::NilReplica, CORBA::SystemException)) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); diff --git a/TAO/orbsvcs/orbsvcs/ReplicaProxy.h b/TAO/orbsvcs/orbsvcs/ReplicaProxy.h index 68e8245a2b1..a4f60a41a06 100644 --- a/TAO/orbsvcs/orbsvcs/ReplicaProxy.h +++ b/TAO/orbsvcs/orbsvcs/ReplicaProxy.h @@ -102,7 +102,7 @@ private: private: - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Mutex used to ensure access ReplicaProxy state is atomic. CORBA::Object_var replica_; diff --git a/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.cpp index b537a3d572c..9c0c198c5d0 100644 --- a/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.cpp @@ -18,7 +18,7 @@ TAO_LB_Round_Robin_Strategy::TAO_LB_Round_Robin_Strategy (void) TAO_LB_Round_Robin_Strategy::~TAO_LB_Round_Robin_Strategy (void) { - ACE_MT (ACE_GUARD (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_)); @@ -42,7 +42,7 @@ CORBA::Object_ptr TAO_LB_Round_Robin_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, CORBA::Object::_nil ()); @@ -86,7 +86,7 @@ TAO_LB_Round_Robin_Strategy::replica (CORBA::Environment &ACE_TRY_ENV) int TAO_LB_Round_Robin_Strategy::insert (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); @@ -99,7 +99,7 @@ TAO_LB_Round_Robin_Strategy::insert (TAO_LB_ReplicaProxy *proxy) int TAO_LB_Round_Robin_Strategy::remove (TAO_LB_ReplicaProxy *proxy) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, -1)); diff --git a/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.h b/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.h index 8abedbc2edb..523ff488d9e 100644 --- a/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.h +++ b/TAO/orbsvcs/orbsvcs/Round_Robin_Strategy.h @@ -71,7 +71,7 @@ private: ACE_Unbounded_Set_Iterator<TAO_LB_ReplicaProxy *> next_replica_; - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Lock used to ensure access to state within this class is atomic. }; diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp index e16c7252ff6..f255d8d8fcb 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp @@ -222,11 +222,11 @@ template class ACE_Connect_Strategy<TAO_IIOP_SSL_Connection_Handler, ACE_SOCK_CO template class ACE_Connector<TAO_IIOP_SSL_Connection_Handler, ACE_SOCK_CONNECTOR>; template class ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>; -template class ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, ACE_SYNCH_RW_MUTEX>; +template class ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, TAO_SYNCH_RW_MUTEX>; template class ACE_Map_Entry<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*>; -template class ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,ACE_SYNCH_RW_MUTEX>; +template class ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,TAO_SYNCH_RW_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) @@ -241,10 +241,10 @@ template class ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connectio #pragma instantiate ACE_Connector<TAO_IIOP_SSL_Connection_Handler, ACE_SOCK_Connector> #pragma instantiate ACE_Creation_Strategy<TAO_IIOP_SSL_Connection_Handler> #pragma instantiate ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> -#pragma instantiate ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, ACE_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler> *, TAO_SYNCH_RW_MUTEX> #pragma instantiate ACE_Map_Entry<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*> -#pragma instantiate ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,ACE_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_IIOP_SSL_Connection_Handler>*,TAO_SYNCH_RW_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp index 99404e41e08..3d2ab57182e 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp @@ -300,11 +300,11 @@ template class ACE_Connector<TAO_SSLIOP_Connection_Handler, ACE_SSL_SOCK_CONNECT template class ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>; -template class ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, ACE_SYNCH_RW_MUTEX>; +template class ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, TAO_SYNCH_RW_MUTEX>; template class ACE_Map_Entry<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*>; -template class ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,ACE_SYNCH_RW_MUTEX>; -template class ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,ACE_SYNCH_RW_MUTEX>; +template class ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,TAO_SYNCH_RW_MUTEX>; +template class ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,TAO_SYNCH_RW_MUTEX>; template class ACE_Auto_Basic_Array_Ptr<TAO_SSLIOP_Connection_Handler*>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) @@ -319,11 +319,11 @@ template class ACE_Auto_Basic_Array_Ptr<TAO_SSLIOP_Connection_Handler*>; #pragma instantiate ACE_Connector<TAO_SSLIOP_Connection_Handler, ACE_SOCK_CONNECTOR> #pragma instantiate ACE_Creation_Strategy<TAO_SSLIOP_Connection_Handler> #pragma instantiate ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> -#pragma instantiate ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, ACE_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Manager<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Iterator_Base<int, ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler> *, TAO_SYNCH_RW_MUTEX> #pragma instantiate ACE_Map_Entry<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*> -#pragma instantiate ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,ACE_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Reverse_Iterator<int,ACE_Svc_Tuple<TAO_SSLIOP_Connection_Handler>*,TAO_SYNCH_RW_MUTEX> #pragma instantiate ACE_Auto_Basic_Array_Ptr<TAO_SSLIOP_Connection_Handler*> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp index 6420e34e303..61761bfd780 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp @@ -2412,10 +2412,10 @@ ACE_DynScheduler::output_timeline (const char *filename, const char *heading) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Map_Entry<ACE_CString, RtecScheduler::RT_Info *>; -template class ACE_Map_Manager<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX>; -template class ACE_Map_Iterator_Base<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX>; -template class ACE_Map_Iterator<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX>; -template class ACE_Map_Reverse_Iterator<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX>; +template class ACE_Map_Manager<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX>; +template class ACE_Map_Iterator_Base<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX>; +template class ACE_Map_Iterator<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX>; +template class ACE_Map_Reverse_Iterator<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX>; template class ACE_DNode<Dispatch_Entry_Link>; template class ACE_DNode<Dispatch_Proxy_Iterator *>; template class ACE_DNode<TimeLine_Entry_Link>; @@ -2441,10 +2441,10 @@ template class ACE_Unbounded_Set<RtecScheduler::Scheduling_Anomaly *>; template class ACE_Unbounded_Set_Iterator<RtecScheduler::Scheduling_Anomaly *>; #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Map_Entry<ACE_CString, RtecScheduler::RT_Info *> -#pragma instantiate ACE_Map_Manager<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Map_Iterator_Base<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Map_Iterator<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Map_Reverse_Iterator<ACE_CString, RtecScheduler::RT_Info *, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Manager<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Iterator_Base<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Iterator<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Reverse_Iterator<ACE_CString, RtecScheduler::RT_Info *, TAO_SYNCH_MUTEX> #pragma instantiate ACE_DNode<Dispatch_Entry_Link> #pragma instantiate ACE_DNode<Dispatch_Proxy_Iterator *> #pragma instantiate ACE_DNode<TimeLine_Entry_Link> diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.h b/TAO/orbsvcs/orbsvcs/Sched/DynSched.h index 29220b1d687..38f877f9e20 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.h +++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.h @@ -380,15 +380,15 @@ private: typedef RT_Info *INT; #if defined (ACE_HAS_THREADS) - typedef ACE_Thread_Mutex SYNCH; - typedef ACE_Recursive_Thread_Mutex LOCK; + typedef TAO_SYNCH_MUTEX SYNCH; + typedef TAO_SYNCH_RECURSIVE_MUTEX LOCK; #else typedef ACE_Null_Mutex SYNCH; typedef ACE_Null_Mutex LOCK; #endif /* ACE_HAS_THREADS */ - typedef ACE_Map_Manager<EXT, INT, ACE_SYNCH_MUTEX> Info_Collection; - typedef ACE_Map_Iterator<EXT, INT, ACE_SYNCH_MUTEX> Info_Collection_Iterator; + typedef ACE_Map_Manager<EXT, INT, TAO_SYNCH_MUTEX> Info_Collection; + typedef ACE_Map_Iterator<EXT, INT, TAO_SYNCH_MUTEX> Info_Collection_Iterator; typedef ACE_Map_Entry<EXT, INT> Info_Collection_Entry; ////////////////////////////// diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp index 7d615e0e0e4..eee2a33502e 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp @@ -279,26 +279,26 @@ ACE_Scheduler::dispatch_configuration (const Preemption_Priority & p_priority, #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Map_Entry<ACE_CString, ACE_Scheduler::RT_Info **>; -template class ACE_Lock_Adapter<ACE_SYNCH_RW_MUTEX>; +template class ACE_Lock_Adapter<TAO_SYNCH_RW_MUTEX>; template class ACE_Map_Manager<ACE_CString, ACE_Scheduler::RT_Info **, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class ACE_Map_Iterator_Base<ACE_CString, ACE_Scheduler::RT_Info **, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class ACE_Map_Iterator<ACE_CString, ACE_Scheduler::RT_Info **, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; template class ACE_Map_Reverse_Iterator<ACE_CString, ACE_Scheduler::RT_Info **, - ACE_SYNCH_MUTEX>; + TAO_SYNCH_MUTEX>; #elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Map_Entry<ACE_CString, ACE_Scheduler::RT_Info **> -#pragma instantiate ACE_Lock_Adapter<ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Map_Manager<ACE_CString, ACE_Scheduler::RT_Info **, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Map_Iterator_Base<ACE_CString, ACE_Scheduler::RT_Info **, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Map_Iterator<ACE_CString, ACE_Scheduler::RT_Info **, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Map_Reverse_Iterator<ACE_CString, ACE_Scheduler::RT_Info **, ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Lock_Adapter<TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Map_Manager<ACE_CString, ACE_Scheduler::RT_Info **, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Iterator_Base<ACE_CString, ACE_Scheduler::RT_Info **, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Iterator<ACE_CString, ACE_Scheduler::RT_Info **, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Map_Reverse_Iterator<ACE_CString, ACE_Scheduler::RT_Info **, TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h index 86ebf429fed..97dd4df1fed 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h +++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h @@ -263,8 +263,8 @@ private: typedef ACE_CString EXT; typedef RT_Info **INT; - typedef ACE_Map_Manager<EXT, INT, ACE_SYNCH_MUTEX> Info_Collection; - typedef ACE_Map_Iterator<EXT, INT, ACE_SYNCH_MUTEX> Info_Collection_Iterator; + typedef ACE_Map_Manager<EXT, INT, TAO_SYNCH_MUTEX> Info_Collection; + typedef ACE_Map_Iterator<EXT, INT, TAO_SYNCH_MUTEX> Info_Collection_Iterator; typedef ACE_Map_Entry<EXT, INT> Info_Collection_Entry; Info_Collection info_collection_; diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h index 1ba089017a8..f8ed3a7204a 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h +++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h @@ -102,7 +102,7 @@ private: // dispatchin configuration info #if defined (ACE_HAS_THREADS) - typedef ACE_Recursive_Thread_Mutex LOCK; + typedef TAO_SYNCH_RECURSIVE_MUTEX LOCK; #else typedef ACE_Null_Mutex LOCK; #endif /* ACE_HAS_THREADS */ diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp index 96470138d19..44a07b258d1 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp @@ -2,7 +2,7 @@ #include "Interpreter.h" -ACE_SYNCH_MUTEX TAO_Interpreter::parserMutex__; +TAO_SYNCH_MUTEX TAO_Interpreter::parserMutex__; TAO_Interpreter::TAO_Interpreter (void) : root_ (0) @@ -17,7 +17,7 @@ TAO_Interpreter::~TAO_Interpreter (void) int TAO_Interpreter::build_tree (const char* constraints) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, TAO_Interpreter::parserMutex__, -1); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h index db806cfd225..307b6a28b1e 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h +++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h @@ -49,7 +49,7 @@ protected: // The root of the expression tree, not equal to null if build_tree // successfully builds a tree from the constraints. private: - static ACE_SYNCH_MUTEX parserMutex__; + static TAO_SYNCH_MUTEX parserMutex__; // This mutex protects the <build_tree> method from reentrance. }; diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp index 667d525be40..0b4e417702b 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp @@ -593,7 +593,7 @@ TAO_Trader_Factory::manufacture_trader (void) typedef TAO_Trader<ACE_Null_Mutex, ACE_Null_Mutex> TRADER; #if defined ACE_HAS_THREADS - typedef TAO_Trader<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> MT_TRADER; + typedef TAO_Trader<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> MT_TRADER; #else typedef TAO_Trader<ACE_Null_Mutex, ACE_Null_Mutex> MT_TRADER; #endif /* ACE_HAS_THREADS */ @@ -793,24 +793,24 @@ TAO_Trader_Factory::parse_args (int& argc, char** argv) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) -template class TAO_Offer_Database<ACE_RW_Thread_Mutex>; -template class TAO_Service_Offer_Iterator<ACE_RW_Thread_Mutex>; -template class TAO_Trader<ACE_Thread_Mutex, ACE_RW_Thread_Mutex>; -template class TAO_Lookup<ACE_Thread_Mutex, ACE_RW_Thread_Mutex>; -template class TAO_Register<ACE_Thread_Mutex, ACE_RW_Thread_Mutex>; -template class TAO_Admin<ACE_Thread_Mutex, ACE_RW_Thread_Mutex>; -template class TAO_Link<ACE_Thread_Mutex, ACE_RW_Thread_Mutex>; -template class TAO_Proxy<ACE_Thread_Mutex, ACE_RW_Thread_Mutex>; -template class TAO_Register_Offer_Iterator<ACE_RW_Thread_Mutex>; -template class ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex>; -template class ACE_Hash_Map_Entry<TAO_String_Hash_Key,TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*>; -template class ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; +template class TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>; +template class TAO_Service_Offer_Iterator<TAO_SYNCH_RW_MUTEX>; +template class TAO_Trader<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX>; +template class TAO_Lookup<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX>; +template class TAO_Register<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX>; +template class TAO_Admin<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX>; +template class TAO_Link<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX>; +template class TAO_Proxy<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX>; +template class TAO_Register_Offer_Iterator<TAO_SYNCH_RW_MUTEX>; +template class ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX>; +template class ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX>; +template class ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX>; +template class ACE_Hash_Map_Entry<TAO_String_Hash_Key,TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*>; +template class ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex>; #endif /* ACE_MT_SAFE */ template class TAO_Offer_Database<ACE_Null_Mutex>; template class TAO_Service_Offer_Iterator<ACE_Null_Mutex>; @@ -874,24 +874,24 @@ template class ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, TAO_Offer_Data #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) -#pragma instantiate TAO_Register_Offer_Iterator<ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Offer_Database<ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Service_Offer_Iterator<ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Trader<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Lookup<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Register<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Admin<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Link<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> -#pragma instantiate TAO_Proxy<ACE_Thread_Mutex, ACE_RW_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_RW_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<TAO_String_Hash_Key,TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*> -#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<ACE_RW_Thread_Mutex>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> +#pragma instantiate TAO_Register_Offer_Iterator<TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Offer_Database<TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Service_Offer_Iterator<TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Trader<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Lookup<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Register<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Admin<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Link<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> +#pragma instantiate TAO_Proxy<TAO_SYNCH_MUTEX, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, CosTrading::Link::LinkInfo, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, TAO_SYNCH_RW_MUTEX> +#pragma instantiate ACE_Hash_Map_Entry<TAO_String_Hash_Key,TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*> +#pragma instantiate ACE_Hash_Map_Manager_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<TAO_String_Hash_Key, TAO_Offer_Database<TAO_SYNCH_RW_MUTEX>::Offer_Map_Entry*, ACE_Hash<TAO_String_Hash_Key>, ACE_Equal_To<TAO_String_Hash_Key>, ACE_Null_Mutex> #endif /* ACE_MT_SAFE */ #pragma instantiate TAO_Offer_Database<ACE_Null_Mutex> #pragma instantiate TAO_Service_Offer_Iterator<ACE_Null_Mutex> diff --git a/TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp b/TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp index 225bf115633..9044d2dc367 100644 --- a/TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp +++ b/TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp @@ -188,7 +188,7 @@ ttcp_Stream_Handler::handle_input (ACE_HANDLE /* handle */) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Server_Globals,ACE_SYNCH_MUTEX>; +template class ACE_Singleton<Server_Globals,TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton <Server_Globals,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton <Server_Globals,TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/AVStreams/benchmark/child.h b/TAO/orbsvcs/tests/AVStreams/benchmark/child.h index 19cd6a3d6e5..c98f0f0ac15 100644 --- a/TAO/orbsvcs/tests/AVStreams/benchmark/child.h +++ b/TAO/orbsvcs/tests/AVStreams/benchmark/child.h @@ -43,10 +43,10 @@ public: // ready flag used by the high priority thread to wake up the low // priority threads after it's parsed the arguments. - ACE_SYNCH_MUTEX ready_mtx_; + TAO_SYNCH_MUTEX ready_mtx_; // mutex for the condition variable. - ACE_SYNCH_CONDITION ready_cond_; + TAO_SYNCH_CONDITION ready_cond_; // condition variable for the low priority threads to wait //until the high priority thread is done with the arguments parsing. @@ -65,7 +65,7 @@ public: // The process options for the process to be spawned by the process strategy }; -typedef ACE_Singleton <Server_Globals,ACE_SYNCH_MUTEX> SERVER_GLOBALS; +typedef ACE_Singleton <Server_Globals,TAO_SYNCH_MUTEX> SERVER_GLOBALS; class ttcp_Stream_Handler : public virtual ACE_Event_Handler diff --git a/TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp b/TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp index 8b425c05c67..7d36af990c8 100644 --- a/TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp +++ b/TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp @@ -204,7 +204,7 @@ Client::svc (void) { if (this->task_id_ == 0) { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ready_mon, GLOBALS::instance ()->ready_mtx_, 1)); + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ready_mon, GLOBALS::instance ()->ready_mtx_, 1)); ACE_NEW_RETURN (GLOBALS::instance ()->barrier_, ACE_Barrier (GLOBALS::instance ()->thread_count_), @@ -214,7 +214,7 @@ Client::svc (void) } else { - ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ready_mon, GLOBALS::instance ()->ready_mtx_, 1)); + ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ready_mon, GLOBALS::instance ()->ready_mtx_, 1)); GLOBALS::instance ()->ready_cond_.wait (); } @@ -513,12 +513,12 @@ template class TAO_AV_Endpoint_Reactive_Strategy<Client_StreamEndPoint,TAO_VDev, template class TAO_AV_Endpoint_Reactive_Strategy_A<ttcp_Client_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl>; template class TAO_AV_Endpoint_Reactive_Strategy_A<Client_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl>; template class ACE_Acceptor <ttcp_Client_StreamEndPoint,ACE_SOCK_ACCEPTOR>; -template class ACE_Singleton<Globals,ACE_SYNCH_MUTEX>; +template class ACE_Singleton<Globals,TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate TAO_AV_Endpoint_Reactive_Strategy<ttcp_Client_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl> #pragma instantiate TAO_AV_Endpoint_Reactive_Strategy<Client_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl> #pragma instantiate TAO_AV_Endpoint_Reactive_Strategy_A<ttcp_Client_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl> #pragma instantiate TAO_AV_Endpoint_Reactive_Strategy_A<Client_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl> #pragma instantiate ACE_Acceptor <ttcp_Client_StreamEndPoint,ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Singleton <Globals,ACE_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton <Globals,TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/AVStreams/benchmark/client.h b/TAO/orbsvcs/tests/AVStreams/benchmark/client.h index 7cd84ea8431..8f9dcf0bf51 100644 --- a/TAO/orbsvcs/tests/AVStreams/benchmark/client.h +++ b/TAO/orbsvcs/tests/AVStreams/benchmark/client.h @@ -138,10 +138,10 @@ public: // ready flag used by the high priority thread to wake up the low // priority threads after it's parsed the arguments. - ACE_SYNCH_MUTEX ready_mtx_; + TAO_SYNCH_MUTEX ready_mtx_; // mutex for the condition variable. - ACE_SYNCH_CONDITION ready_cond_; + TAO_SYNCH_CONDITION ready_cond_; // condition variable for the low priority threads to wait //until the high priority thread is done with the arguments parsing. @@ -166,7 +166,7 @@ public: // No. of threads. }; -typedef ACE_Singleton <Globals,ACE_SYNCH_MUTEX> GLOBALS; +typedef ACE_Singleton <Globals,TAO_SYNCH_MUTEX> GLOBALS; class Client : public ACE_Task<ACE_SYNCH> // one of these per client thread diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp index 125565cd85f..431c582cc2b 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp @@ -159,9 +159,9 @@ Audio_Control_Play_State::close (void) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Audio_Control_Play_State, ACE_Thread_Mutex>; -template class ACE_Singleton<Audio_Control_Waiting_State, ACE_Thread_Mutex>; +template class ACE_Singleton<Audio_Control_Play_State, TAO_SYNCH_MUTEX>; +template class ACE_Singleton<Audio_Control_Waiting_State, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Audio_Control_Play_State, ACE_Thread_Mutex> -#pragma instantiate ACE_Singleton<Audio_Control_Waiting_State, ACE_Thread_Mutex> +#pragma instantiate ACE_Singleton<Audio_Control_Play_State, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<Audio_Control_Waiting_State, TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.h b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.h index e585f00f01b..173f8897e98 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.h +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.h @@ -76,9 +76,9 @@ public: virtual void close (void); }; -typedef ACE_Singleton <Audio_Control_Waiting_State, ACE_SYNCH_MUTEX> +typedef ACE_Singleton <Audio_Control_Waiting_State, TAO_SYNCH_MUTEX> AUDIO_CONTROL_WAITING_STATE; -typedef ACE_Singleton <Audio_Control_Play_State, ACE_SYNCH_MUTEX> +typedef ACE_Singleton <Audio_Control_Play_State, TAO_SYNCH_MUTEX> AUDIO_CONTROL_PLAY_STATE; #endif /*_MPEG_AUDIO_CONTROL_STATE_H */ diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp index 05eea8d2e0c..7f792d32392 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp @@ -2950,9 +2950,9 @@ Audio_Global::on_exit_routine(void) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Video_Global, ACE_Thread_Mutex>; -template class ACE_Singleton<Audio_Global, ACE_Thread_Mutex>; +template class ACE_Singleton<Video_Global, TAO_SYNCH_MUTEX>; +template class ACE_Singleton<Audio_Global, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Video_Global, ACE_Thread_Mutex> -#pragma instantiate ACE_Singleton<Audio_Global, ACE_Thread_Mutex> +#pragma instantiate ACE_Singleton<Video_Global, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<Audio_Global, TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.h b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.h index c7740c4ccda..9eba48df67d 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.h +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.h @@ -302,7 +302,7 @@ public: int init_video (void); }; -typedef ACE_Singleton <Video_Global, ACE_SYNCH_MUTEX> VIDEO_SINGLETON; +typedef ACE_Singleton <Video_Global, TAO_SYNCH_MUTEX> VIDEO_SINGLETON; class Video_Timer_Global // A class that holds the static timer variables defined in the middle @@ -392,7 +392,7 @@ public: AudioFeedBackPara * fbpara ; }; -typedef ACE_Singleton <Audio_Global,ACE_SYNCH_MUTEX> AUDIO_GLOBAL; +typedef ACE_Singleton <Audio_Global,TAO_SYNCH_MUTEX> AUDIO_GLOBAL; #endif /* define MPEG_GLOBAL_H */ diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp index ca956749958..72141455745 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp @@ -486,13 +486,13 @@ Video_Control_Fast_Backward_State::close (void) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Video_Control_Play_State, ACE_Thread_Mutex>; -template class ACE_Singleton<Video_Control_Fast_Forward_State, ACE_Thread_Mutex>; -template class ACE_Singleton<Video_Control_Fast_Backward_State, ACE_Thread_Mutex>; -template class ACE_Singleton<Video_Control_Waiting_State, ACE_Thread_Mutex>; +template class ACE_Singleton<Video_Control_Play_State, TAO_SYNCH_MUTEX>; +template class ACE_Singleton<Video_Control_Fast_Forward_State, TAO_SYNCH_MUTEX>; +template class ACE_Singleton<Video_Control_Fast_Backward_State, TAO_SYNCH_MUTEX>; +template class ACE_Singleton<Video_Control_Waiting_State, TAO_SYNCH_MUTEX>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Video_Control_Fast_Backward_State, ACE_Thread_Mutex> -#pragma instantiate ACE_Singleton<Video_Control_Play_State, ACE_Thread_Mutex> -#pragma instantiate ACE_Singleton<Video_Control_Fast_Forward_State, ACE_Thread_Mutex> -#pragma instantiate ACE_Singleton<Video_Control_Waiting_State, ACE_Thread_Mutex> +#pragma instantiate ACE_Singleton<Video_Control_Fast_Backward_State, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<Video_Control_Play_State, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<Video_Control_Fast_Forward_State, TAO_SYNCH_MUTEX> +#pragma instantiate ACE_Singleton<Video_Control_Waiting_State, TAO_SYNCH_MUTEX> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.h b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.h index 9363a48ea0d..389d1a68230 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.h +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.h @@ -177,13 +177,13 @@ public: CORBA::Boolean stop (CORBA::Long cmdsn); }; -typedef ACE_Singleton <Video_Control_Waiting_State, ACE_SYNCH_MUTEX> +typedef ACE_Singleton <Video_Control_Waiting_State, TAO_SYNCH_MUTEX> VIDEO_CONTROL_WAITING_STATE; -typedef ACE_Singleton <Video_Control_Play_State, ACE_SYNCH_MUTEX> +typedef ACE_Singleton <Video_Control_Play_State, TAO_SYNCH_MUTEX> VIDEO_CONTROL_PLAY_STATE; -typedef ACE_Singleton <Video_Control_Fast_Forward_State, ACE_SYNCH_MUTEX> +typedef ACE_Singleton <Video_Control_Fast_Forward_State, TAO_SYNCH_MUTEX> VIDEO_CONTROL_FAST_FORWARD_STATE; -typedef ACE_Singleton <Video_Control_Fast_Backward_State, ACE_SYNCH_MUTEX> +typedef ACE_Singleton <Video_Control_Fast_Backward_State, TAO_SYNCH_MUTEX> VIDEO_CONTROL_FAST_BACKWARD_STATE; #endif /* MPEG_VIDEO_SERVER_STATE_H */ diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp index 24db133161d..3c2ce9101f3 100644 --- a/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp +++ b/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp @@ -353,7 +353,7 @@ RND_Consumer::connect (CosEventChannelAdmin::ConsumerAdmin_ptr admin, { CosEventChannelAdmin::ProxyPushSupplier_var proxy; { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) { @@ -374,7 +374,7 @@ RND_Consumer::connect (CosEventChannelAdmin::ConsumerAdmin_ptr admin, void RND_Consumer::disconnect (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) return; @@ -406,7 +406,7 @@ RND_Supplier::connect (CosEventChannelAdmin::SupplierAdmin_ptr admin, { CosEventChannelAdmin::ProxyPushConsumer_var proxy; { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) { @@ -433,7 +433,7 @@ RND_Supplier::connect (CosEventChannelAdmin::SupplierAdmin_ptr admin, void RND_Supplier::disconnect (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) return; @@ -459,7 +459,7 @@ RND_Supplier::push (CORBA::Any &event, { CosEventChannelAdmin::ProxyPushConsumer_var proxy; { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) return; diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Random.h b/TAO/orbsvcs/tests/CosEvent/Basic/Random.h index 051263bd3c9..3a113cdee5a 100644 --- a/TAO/orbsvcs/tests/CosEvent/Basic/Random.h +++ b/TAO/orbsvcs/tests/CosEvent/Basic/Random.h @@ -64,7 +64,7 @@ protected: CosEventChannelAdmin::ProxyPushSupplier_var proxy_; // The supplier. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synch }; @@ -127,7 +127,7 @@ private: CosEventChannelAdmin::ProxyPushConsumer_var proxy_; // The supplier. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synch }; diff --git a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp index 6a3d7fb3dd5..f6526df1daa 100644 --- a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp +++ b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp @@ -243,7 +243,7 @@ CEC_Counting_Consumer_Task::svc () void CEC_Counting_Consumer_Task::stop (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->stop_flag_ = 1; } @@ -280,7 +280,7 @@ CEC_Counting_Consumer_Task::run (CORBA::Environment &ACE_TRY_ENV) if (has_event) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->pull_count_++; } diff --git a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.h b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.h index 012325965f2..10c921c6693 100644 --- a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.h +++ b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.h @@ -149,7 +149,7 @@ private: // If not zero then pause for <milliseconds> before sending each // event. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; }; #endif /* ECT_CONSUMER_H */ diff --git a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp index f664dbcfaaa..774f3177df8 100644 --- a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp +++ b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp @@ -109,7 +109,7 @@ CEC_Counting_Supplier_Task::svc () void CEC_Counting_Supplier_Task::stop (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->stop_flag_ = 1; } @@ -141,7 +141,7 @@ CEC_Counting_Supplier_Task::run (CORBA::Environment &ACE_TRY_ENV) ACE_OS::sleep (0); } - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->push_count_++; diff --git a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.h b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.h index 159e77205f8..357714a81d5 100644 --- a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.h +++ b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.h @@ -96,7 +96,7 @@ private: // If not zero then pause for <milliseconds> before sending each // event. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; }; // **************************************************************** diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp index 02060df5e7b..7b9dca0b336 100644 --- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp +++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp @@ -188,7 +188,7 @@ Driver::push_consumer (void* /* consumer_cookie */, return; } - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->recv_count_mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->recv_count_mutex_); this->recv_count_ += events.length (); diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h index 62b9bdca96f..49f0925df86 100644 --- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h +++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h @@ -110,7 +110,7 @@ private: const char* pid_file_name_; // The name of a file where the process stores its pid - ACE_SYNCH_MUTEX recv_count_mutex_; + TAO_SYNCH_MUTEX recv_count_mutex_; int recv_count_; // How many events we have received. }; diff --git a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h index 082e778860a..9490a558de5 100644 --- a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h +++ b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h @@ -496,7 +496,7 @@ private: ECM_Federation* all_federations_[MAX_FEDERATIONS]; // All the federations. - ACE_Atomic_Op<ACE_SYNCH_MUTEX,CORBA::ULong> federations_running_; + ACE_Atomic_Op<TAO_SYNCH_MUTEX,CORBA::ULong> federations_running_; // Keep track of how many federations are active so we can shutdown // once they are all destroyed. diff --git a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp index 79d0ee8a7aa..af62cfd60bc 100644 --- a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp +++ b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp @@ -542,7 +542,7 @@ Test_ECG::run (int argc, char* argv[]) // Acquire the mutex for the ready mutex, blocking any supplier // that may start after this point. - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ready_mon, this->ready_mtx_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ready_mon, this->ready_mtx_, 1); this->ready_ = 1; this->test_start_ = ACE_OS::gethrtime (); this->ready_cnd_.broadcast (); @@ -992,7 +992,7 @@ Test_ECG::push_consumer (void *consumer_cookie, void Test_ECG::wait_until_ready (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ready_mon, this->ready_mtx_); + ACE_GUARD (TAO_SYNCH_MUTEX, ready_mon, this->ready_mtx_); while (!this->ready_) this->ready_cnd_.wait (); } diff --git a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h index 8b3691ced53..9c9cbd9602a 100644 --- a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h +++ b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h @@ -362,17 +362,17 @@ private: // Store the measurements for local and remote events.. int ready_; - ACE_SYNCH_MUTEX ready_mtx_; - ACE_SYNCH_CONDITION ready_cnd_; + TAO_SYNCH_MUTEX ready_mtx_; + TAO_SYNCH_CONDITION ready_cnd_; // Before accepting any events the suppliers must wait for the test // to setup all the consumers. // The suppliers wait on the condition variable. - ACE_Atomic_Op<ACE_SYNCH_MUTEX,int> running_suppliers_; + ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> running_suppliers_; // keep track of how many suppliers are still running so we shutdown // at the right moment. - ACE_Atomic_Op<ACE_SYNCH_MUTEX,int> running_consumers_; + ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> running_consumers_; // keep track of how many consumers are still running so we shutdown // at the right moment. diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp index 03cea69d4f8..217116097ae 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp @@ -125,7 +125,7 @@ Test_Consumer::push (const RtecEventComm::EventSet& events, return; } - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); // We start the timer as soon as we receive the first event... if (this->recv_count_ == 0) diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h index f56dc82d7e3..2ebb10be3b8 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h @@ -79,7 +79,7 @@ private: RtecEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_; // We talk to the EC using this proxy. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; int recv_count_; ACE_hrtime_t first_event_; // How many events we have received. diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp index ddd0e3ff20f..740bc4ecc00 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp @@ -172,7 +172,7 @@ ECT_Consumer_Driver::run (int argc, char* argv[]) ACE_Time_Value tv (0, 10000); this->orb_->perform_work (tv, ACE_TRY_ENV); ACE_TRY_CHECK; - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 1); if (this->active_count_ <= 0) break; } @@ -211,7 +211,7 @@ ECT_Consumer_Driver::shutdown_consumer (void*, // // ACE_DEBUG ((LM_DEBUG, "(%t) events received by consumer %d\n", ID)); - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->active_count_--; } @@ -222,7 +222,7 @@ ECT_Consumer_Driver::connect_consumers CORBA::Environment &ACE_TRY_ENV) { { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->active_count_ = this->n_consumers_; } for (int i = 0; i < this->n_consumers_; ++i) diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h index a05a822a151..8c36036a4d0 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h @@ -88,7 +88,7 @@ private: CORBA::ORB_var orb_; // A reference to the ORB, to shut it down properly. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; int active_count_; // How many consumers are still receiving events. }; diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp index d8ad9880905..333a0ab66ab 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp @@ -361,7 +361,7 @@ ECT_Throughput::shutdown_consumer (void*, // // ACE_DEBUG ((LM_DEBUG, "(%t) events received by consumer %d\n", ID)); - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->active_count_--; if (this->active_count_ <= 0) { @@ -378,7 +378,7 @@ ECT_Throughput::connect_consumers CORBA::Environment &ACE_TRY_ENV) { { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->active_count_ = this->n_consumers_; } for (int i = 0; i < this->n_consumers_; ++i) diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h index 8cf8380cda0..c80c76b7080 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h @@ -120,7 +120,7 @@ private: CORBA::ORB_var orb_; // A reference to the ORB, to shut it down properly. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; int active_count_; // How many consumers are still receiving events. diff --git a/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp b/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp index 6fb3f5bc377..5b15f1b2667 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp +++ b/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp @@ -301,7 +301,7 @@ Consumer::push (const RtecEventComm::EventSet& events, return; } - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->event_count++; // ACE_DEBUG ((LM_DEBUG, diff --git a/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.h b/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.h index 63179e972b0..11276146cbe 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.h +++ b/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.h @@ -55,7 +55,7 @@ private: int event_base_type_; // Base event type - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synchronize access to the counter }; diff --git a/TAO/orbsvcs/tests/Event/Basic/Control.cpp b/TAO/orbsvcs/tests/Event/Basic/Control.cpp index 00595268330..0cd5c5e78e2 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Control.cpp +++ b/TAO/orbsvcs/tests/Event/Basic/Control.cpp @@ -185,7 +185,7 @@ Consumer::push (const RtecEventComm::EventSet& events, } { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->event_count++; if (this->event_count != this->shutdown_count_) diff --git a/TAO/orbsvcs/tests/Event/Basic/Control.h b/TAO/orbsvcs/tests/Event/Basic/Control.h index cf98b0f2f65..dec0e8f08b9 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Control.h +++ b/TAO/orbsvcs/tests/Event/Basic/Control.h @@ -47,7 +47,7 @@ private: // After this number of events the consumer disconnects from the // event service. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synchronize access to the counter }; diff --git a/TAO/orbsvcs/tests/Event/Basic/Observer.cpp b/TAO/orbsvcs/tests/Event/Basic/Observer.cpp index 2232e118c0a..d897cad75e8 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Observer.cpp +++ b/TAO/orbsvcs/tests/Event/Basic/Observer.cpp @@ -393,7 +393,7 @@ EC_Observer::consumer_push (void*, for (int i = 1; i < this->n_consumers_; ++i) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->consumers_[i]->connected ()) { diff --git a/TAO/orbsvcs/tests/Event/Basic/Observer.h b/TAO/orbsvcs/tests/Event/Basic/Observer.h index de2d4d6f856..5b2fe020327 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Observer.h +++ b/TAO/orbsvcs/tests/Event/Basic/Observer.h @@ -116,7 +116,7 @@ private: TAO_EC_Gateway_IIOP *gwys_; - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // lock internal state }; diff --git a/TAO/orbsvcs/tests/Event/Basic/Random.cpp b/TAO/orbsvcs/tests/Event/Basic/Random.cpp index b5498615ca0..75498089811 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Random.cpp +++ b/TAO/orbsvcs/tests/Event/Basic/Random.cpp @@ -417,7 +417,7 @@ RND_Consumer::connect (RtecEventChannelAdmin::ConsumerAdmin_ptr admin, { RtecEventChannelAdmin::ProxyPushSupplier_var proxy; { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) { @@ -439,7 +439,7 @@ RND_Consumer::connect (RtecEventChannelAdmin::ConsumerAdmin_ptr admin, void RND_Consumer::disconnect (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) return; @@ -472,7 +472,7 @@ RND_Supplier::connect (RtecEventChannelAdmin::SupplierAdmin_ptr admin, { RtecEventChannelAdmin::ProxyPushConsumer_var proxy; { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) { @@ -495,7 +495,7 @@ RND_Supplier::connect (RtecEventChannelAdmin::SupplierAdmin_ptr admin, void RND_Supplier::disconnect (CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) return; @@ -522,7 +522,7 @@ RND_Supplier::push (RtecEventComm::EventSet &event, { RtecEventChannelAdmin::ProxyPushConsumer_var proxy; { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (CORBA::is_nil (this->proxy_.in ())) return; diff --git a/TAO/orbsvcs/tests/Event/Basic/Random.h b/TAO/orbsvcs/tests/Event/Basic/Random.h index ee3b72d351d..9ba7af06e4f 100644 --- a/TAO/orbsvcs/tests/Event/Basic/Random.h +++ b/TAO/orbsvcs/tests/Event/Basic/Random.h @@ -65,7 +65,7 @@ protected: RtecEventChannelAdmin::ProxyPushSupplier_var proxy_; // The supplier. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synch }; @@ -129,7 +129,7 @@ private: RtecEventChannelAdmin::ProxyPushConsumer_var proxy_; // The supplier. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Synch int verbose_; diff --git a/TAO/orbsvcs/tests/Event/Performance/Latency.cpp b/TAO/orbsvcs/tests/Event/Performance/Latency.cpp index fe88fc14a2d..37fab174375 100644 --- a/TAO/orbsvcs/tests/Event/Performance/Latency.cpp +++ b/TAO/orbsvcs/tests/Event/Performance/Latency.cpp @@ -121,7 +121,7 @@ main (int argc, char *argv []) // Now create the history ACE_Sample_History history (iterations); - ACE_SYNCH_MUTEX history_mutex; + TAO_SYNCH_MUTEX history_mutex; // The consumer EC_Latency_Consumer consumer (&history, @@ -289,7 +289,7 @@ parse_args (int argc, char *argv[]) // **************************************************************** EC_Latency_Consumer::EC_Latency_Consumer (ACE_Sample_History *history, - ACE_SYNCH_MUTEX *mutex, + TAO_SYNCH_MUTEX *mutex, int message_count) : history_ (history) , mutex_ (mutex) @@ -300,7 +300,7 @@ EC_Latency_Consumer::EC_Latency_Consumer (ACE_Sample_History *history, int EC_Latency_Consumer::done (void) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, *this->mutex_, -1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, *this->mutex_, -1); return this->remaining_messages_ <= 0; } @@ -314,7 +314,7 @@ EC_Latency_Consumer::push (const RtecEventComm::EventSet& events, events[0].header.creation_time); ACE_hrtime_t now = ACE_OS::gethrtime (); - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, *this->mutex_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, *this->mutex_); this->history_->sample (now - creation); this->remaining_messages_--; } @@ -349,7 +349,7 @@ Task::Task (RtecEventChannelAdmin::ProxyPushConsumer_ptr consumer, int Task::done (void) { - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mutex_, 1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 1); return this->remaining_messages_ == 0; } @@ -375,7 +375,7 @@ Task::svc (void) // ACE_Time_Value tv (0, 5000); // ACE_OS::sleep (tv); - ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mutex_, -1); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, -1); if (this->remaining_messages_ % 1000 == 0) { ACE_DEBUG ((LM_DEBUG, "Only %d messages to go\n", diff --git a/TAO/orbsvcs/tests/Event/Performance/Latency.h b/TAO/orbsvcs/tests/Event/Performance/Latency.h index 38d8a30d000..e0aa6fa32f1 100644 --- a/TAO/orbsvcs/tests/Event/Performance/Latency.h +++ b/TAO/orbsvcs/tests/Event/Performance/Latency.h @@ -33,7 +33,7 @@ class EC_Latency_Consumer : public POA_RtecEventComm::PushConsumer public: /// Constructor EC_Latency_Consumer (ACE_Sample_History *history, - ACE_SYNCH_MUTEX *mutex, + TAO_SYNCH_MUTEX *mutex, int message_count); /// Return 1 when all the messages have been received @@ -50,7 +50,7 @@ private: ACE_Sample_History *history_; /// Use this mutex to synchronize access to history_ - ACE_SYNCH_MUTEX *mutex_; + TAO_SYNCH_MUTEX *mutex_; /// Number of messages yet to be received int remaining_messages_; @@ -92,7 +92,7 @@ private: int remaining_messages_; /// Synchronize access to remaining_messages_ - ACE_SYNCH_MUTEX mutex_; + TAO_SYNCH_MUTEX mutex_; }; #endif /* EC_LATENCY_H */ diff --git a/TAO/orbsvcs/tests/Event/lib/Consumer.cpp b/TAO/orbsvcs/tests/Event/lib/Consumer.cpp index 7d73fffb9a1..4d664b4baee 100644 --- a/TAO/orbsvcs/tests/Event/lib/Consumer.cpp +++ b/TAO/orbsvcs/tests/Event/lib/Consumer.cpp @@ -119,7 +119,7 @@ EC_Consumer::push (const RtecEventComm::EventSet& events, return; } - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->push_count_ == 0) this->throughput_start_ = ACE_OS::gethrtime (); diff --git a/TAO/orbsvcs/tests/Event/lib/Consumer.h b/TAO/orbsvcs/tests/Event/lib/Consumer.h index 1e83e9a46b8..ddc4dc35ed9 100644 --- a/TAO/orbsvcs/tests/Event/lib/Consumer.h +++ b/TAO/orbsvcs/tests/Event/lib/Consumer.h @@ -97,7 +97,7 @@ private: RtecEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_; // We talk to the EC using this proxy. - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Protect internal state ACE_hrtime_t throughput_start_; diff --git a/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.cpp b/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.cpp index 26ab04bffb6..9642015c566 100644 --- a/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.cpp +++ b/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.cpp @@ -190,7 +190,7 @@ EC_Counting_Supplier_Task::svc () void EC_Counting_Supplier_Task::stop (void) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->stop_flag_ = 1; } @@ -213,7 +213,7 @@ EC_Counting_Supplier_Task::run (CORBA::Environment &ACE_TRY_ENV) // Sleep for a short time to avoid spinning... ACE_OS::sleep (0); - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); this->push_count_++; diff --git a/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.h b/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.h index e9bd68f0e5c..ece73ce4db2 100644 --- a/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.h +++ b/TAO/orbsvcs/tests/Event/lib/Counting_Supplier.h @@ -124,7 +124,7 @@ private: CORBA::ULong push_count_; // Count the number of push() calls - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; }; #endif /* ECT_SUPPLIER_H */ diff --git a/TAO/orbsvcs/tests/Event/lib/Supplier.cpp b/TAO/orbsvcs/tests/Event/lib/Supplier.cpp index da43bb46c5a..d682be7d812 100644 --- a/TAO/orbsvcs/tests/Event/lib/Supplier.cpp +++ b/TAO/orbsvcs/tests/Event/lib/Supplier.cpp @@ -50,7 +50,7 @@ void EC_Supplier::send_event (const RtecEventComm::EventSet& event, CORBA::Environment &ACE_TRY_ENV) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->push_count_ == 0) this->throughput_start_ = ACE_OS::gethrtime (); diff --git a/TAO/orbsvcs/tests/Event/lib/Supplier.h b/TAO/orbsvcs/tests/Event/lib/Supplier.h index aa797d5ca63..d20ca80723c 100644 --- a/TAO/orbsvcs/tests/Event/lib/Supplier.h +++ b/TAO/orbsvcs/tests/Event/lib/Supplier.h @@ -111,7 +111,7 @@ private: void* cookie_; // Magic cookie provided by the supplier to identify ourselves - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Protect the internal state int push_count_; diff --git a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp index 05229f71167..3bda31fd8e4 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp +++ b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp @@ -326,10 +326,10 @@ main (int argc, char* argv[]) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h index dde7b393023..95ce40ccad6 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h +++ b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h @@ -101,7 +101,7 @@ protected: TAO_Notify_SequencePushSupplier** sequence_supplier_; // arrays of Suppliers - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> result_count_; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> result_count_; // count of clients destroyed. for c consumers, s suppliers and for t times. // this should be (s+c)*t diff --git a/TAO/orbsvcs/tests/Notify/Basic/Events_Test.cpp b/TAO/orbsvcs/tests/Notify/Basic/Events_Test.cpp index 1e676908a05..b109cd6410e 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/Events_Test.cpp +++ b/TAO/orbsvcs/tests/Notify/Basic/Events_Test.cpp @@ -305,10 +305,10 @@ main (int argc, char* argv[]) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/Notify/Basic/Events_Test.h b/TAO/orbsvcs/tests/Notify/Basic/Events_Test.h index a7b1d325a51..cf91edeef0d 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/Events_Test.h +++ b/TAO/orbsvcs/tests/Notify/Basic/Events_Test.h @@ -88,7 +88,7 @@ protected: void create_EC (CORBA::Environment &ACE_TRY_ENV); // Create EC - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> result_count_; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> result_count_; // Number of events received so far. int event_count_; diff --git a/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp b/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp index da6a58fdcd0..a7d8db595ff 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp +++ b/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp @@ -248,10 +248,10 @@ main (int argc, char* argv[]) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/Notify/Basic/Simple.h b/TAO/orbsvcs/tests/Notify/Basic/Simple.h index 0bfd8bb5248..3d258388d03 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/Simple.h +++ b/TAO/orbsvcs/tests/Notify/Basic/Simple.h @@ -89,7 +89,7 @@ protected: void create_EC (CORBA::Environment &ACE_TRY_ENV); // Create EC - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> result_count_; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> result_count_; // Number of events received so far. int event_count_; diff --git a/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp b/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp index 6cf8264db5f..761ae77bdd2 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp +++ b/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp @@ -290,10 +290,10 @@ main (int argc, char* argv[]) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/Notify/Basic/Updates.h b/TAO/orbsvcs/tests/Notify/Basic/Updates.h index d000f7d8f3f..cd65174f53f 100644 --- a/TAO/orbsvcs/tests/Notify/Basic/Updates.h +++ b/TAO/orbsvcs/tests/Notify/Basic/Updates.h @@ -97,7 +97,7 @@ protected: void create_EC (CORBA::Environment &ACE_TRY_ENV); // Create EC - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> result_count_; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> result_count_; // we are waiting for 4 events to happen. const char* domain_name_; diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp index be2744d667c..3f548f1b6ff 100644 --- a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp +++ b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp @@ -18,7 +18,7 @@ ACE_RCSID(Notify, RedGreen_Test, "$Id$") #define TYPE_GREEN "TYPE_GREEN" #define TYPE_RED "TYPE_RED" -ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> g_result_count = 0; +ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> g_result_count = 0; ACE_hrtime_t g_throughput_start_; int @@ -414,7 +414,7 @@ RedGreen_Test_StructuredPushConsumer::push_structured_event (const CosNotificati CosEventComm::Disconnected )) { - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); const char* domain_name = notification.header.fixed_header.event_type.domain_name; @@ -609,10 +609,10 @@ Worker::svc (void) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; +template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, int>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> +#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h index b8425da72f1..45799cd21e8 100644 --- a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h +++ b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h @@ -188,7 +188,7 @@ protected: RedGreen_Test* RedGreen_Test_; // callback <done> - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Protect internal state int push_count_; diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp index bc7ebfc8ada..f762273779b 100644 --- a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp +++ b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp @@ -50,7 +50,7 @@ Throughput_StructuredPushConsumer::push_structured_event (const CosNotification: ORBSVCS_Time::TimeT_to_hrtime (Throughput_base, Throughput_base_recorded); - ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->lock_); + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->push_count_ == 0) this->throughput_start_ = ACE_OS::gethrtime (); diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h index b6a73178a6c..1c44e247dfc 100644 --- a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h +++ b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h @@ -74,7 +74,7 @@ public: protected: Notify_Throughput * test_client_; - ACE_SYNCH_MUTEX lock_; + TAO_SYNCH_MUTEX lock_; // Protect internal state ACE_hrtime_t throughput_start_; @@ -148,7 +148,7 @@ protected: void create_EC (CORBA::Environment &ACE_TRY_ENV); // Create participants. - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> result_count_; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> result_count_; // Number of events received so far. CORBA::Boolean colocated_ec_; @@ -186,7 +186,7 @@ protected: Throughput_StructuredPushSupplier** suppliers_; // Suppliers - ACE_Atomic_Op <ACE_SYNCH_MUTEX, int> g_consumer_done_count; + ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> g_consumer_done_count; // consumer count; int nthreads_; |