summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2016-09-02 20:53:02 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2016-09-02 20:53:02 +0200
commit03ef5706e8b3dcdd8de7636f39aaca7543b23283 (patch)
treef8bcd1537ea77be9e2a162d4f31a55c8205184db
parent1004be5609bb7842835d865422c65332d08425ee (diff)
downloadATCD-03ef5706e8b3dcdd8de7636f39aaca7543b23283.tar.gz
Revert "*_SINGLETON_DECLARE needs to appear in .cpp files, not .h."
This reverts commit 411929ec7d2550f289eb1a2f045f2fc6651cb002.
-rw-r--r--ACE/ace/Based_Pointer_Repository.cpp3
-rw-r--r--ACE/ace/Based_Pointer_Repository.h5
-rw-r--r--ACE/ace/UUID.cpp2
-rw-r--r--ACE/ace/UUID.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AV_Core.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/LookupManager.cpp2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/LookupManager.h2
8 files changed, 11 insertions, 9 deletions
diff --git a/ACE/ace/Based_Pointer_Repository.cpp b/ACE/ace/Based_Pointer_Repository.cpp
index 75727e234a8..6ec16f555ca 100644
--- a/ACE/ace/Based_Pointer_Repository.cpp
+++ b/ACE/ace/Based_Pointer_Repository.cpp
@@ -119,8 +119,5 @@ ACE_Based_Pointer_Repository::unbind (void *addr)
ACE_SINGLETON_TEMPLATE_INSTANTIATE(ACE_Singleton, ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX);
-ACE_SINGLETON_DECLARE (ACE_Singleton,
- ACE_Based_Pointer_Repository,
- ACE_SYNCH_RW_MUTEX)
ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ACE/ace/Based_Pointer_Repository.h b/ACE/ace/Based_Pointer_Repository.h
index 1dbb5a20ac1..00b6d2c4f6b 100644
--- a/ACE/ace/Based_Pointer_Repository.h
+++ b/ACE/ace/Based_Pointer_Repository.h
@@ -76,6 +76,11 @@ private:
// ----------------------------------
+/// Declare a process wide singleton
+ACE_SINGLETON_DECLARE (ACE_Singleton,
+ ACE_Based_Pointer_Repository,
+ ACE_SYNCH_RW_MUTEX)
+
/// Provide a Singleton access point to the based pointer repository.
typedef ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>
ACE_BASED_POINTER_REPOSITORY;
diff --git a/ACE/ace/UUID.cpp b/ACE/ace/UUID.cpp
index 5a97c584b04..dbac895fb8a 100644
--- a/ACE/ace/UUID.cpp
+++ b/ACE/ace/UUID.cpp
@@ -15,8 +15,6 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-ACE_SINGLETON_DECLARE (ACE_Singleton, ACE_Utils::UUID_Generator, ACE_SYNCH_MUTEX)
-
namespace ACE_Utils
{
// NIL version of the UUID
diff --git a/ACE/ace/UUID.h b/ACE/ace/UUID.h
index b2308aae9d7..1e9671214d1 100644
--- a/ACE/ace/UUID.h
+++ b/ACE/ace/UUID.h
@@ -275,6 +275,8 @@ namespace ACE_Utils
UUID_GENERATOR;
}
+ACE_SINGLETON_DECLARE (ACE_Singleton, ACE_Utils::UUID_Generator, ACE_SYNCH_MUTEX)
+
ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
diff --git a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp
index 0501c79730a..5c6b24a29bc 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp
@@ -1150,6 +1150,4 @@ TAO_AV_Core::get_control_flowname(const char *flowname)
template ACE_Singleton<TAO_AV_Core, ACE_Null_Mutex> *ACE_Singleton<TAO_AV_Core, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-TAO_AV_SINGLETON_DECLARE (ACE_Singleton, TAO_AV_Core, ACE_Null_Mutex)
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/AV_Core.h b/TAO/orbsvcs/orbsvcs/AV/AV_Core.h
index 98a0ab923e7..4fea5b533cf 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AV_Core.h
+++ b/TAO/orbsvcs/orbsvcs/AV/AV_Core.h
@@ -162,6 +162,8 @@ TAO_END_VERSIONED_NAMESPACE_DECL
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_AV_SINGLETON_DECLARE (ACE_Singleton, TAO_AV_Core, ACE_Null_Mutex)
+
typedef ACE_Singleton<TAO_AV_Core, ACE_Null_Mutex> TAO_AV_CORE;
ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/tests/Notify/lib/LookupManager.cpp b/TAO/orbsvcs/tests/Notify/lib/LookupManager.cpp
index 0ab38637907..f78102f88ef 100644
--- a/TAO/orbsvcs/tests/Notify/lib/LookupManager.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/LookupManager.cpp
@@ -222,5 +222,3 @@ TAO_Notify_Tests_LookupManager::resolve (CosNotifyFilter::FilterAdmin_var& filte
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template ACE_Singleton<TAO_Notify_Tests_LookupManager, TAO_SYNCH_MUTEX> *ACE_Singleton<TAO_Notify_Tests_LookupManager, TAO_SYNCH_MUTEX>::singleton_;
#endif /*ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_NOTIFY_TEST_SINGLETON_DECLARE (ACE_Singleton, TAO_Notify_Tests_LookupManager, TAO_SYNCH_MUTEX)
diff --git a/TAO/orbsvcs/tests/Notify/lib/LookupManager.h b/TAO/orbsvcs/tests/Notify/lib/LookupManager.h
index 5d86943f979..6b1db928a77 100644
--- a/TAO/orbsvcs/tests/Notify/lib/LookupManager.h
+++ b/TAO/orbsvcs/tests/Notify/lib/LookupManager.h
@@ -105,6 +105,8 @@ protected:
TAO_Notify_Tests_Priority_Mapping *priority_mapping_;
};
+TAO_NOTIFY_TEST_SINGLETON_DECLARE (ACE_Singleton, TAO_Notify_Tests_LookupManager, TAO_SYNCH_MUTEX)
+
typedef ACE_Singleton<TAO_Notify_Tests_LookupManager, TAO_SYNCH_MUTEX> _TAO_Notify_Tests_LookupManager;
#define LOOKUP_MANAGER _TAO_Notify_Tests_LookupManager::instance()