summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ACE/ChangeLog7
-rw-r--r--ACE/ace/Service_Config.h19
2 files changed, 18 insertions, 8 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog
index a8a915f2960..b0cfed34dd4 100644
--- a/ACE/ChangeLog
+++ b/ACE/ChangeLog
@@ -1,3 +1,10 @@
+Wed Aug 1 15:55:38 UTC 2007 Iliyan Jeliazkov <iliyan@ociweb.com>
+
+ * ace/Service_Config.h:
+
+ Added conditional compilation around template specification
+ since ACE_TSS declares cleanup() only in multi-threaded builds.
+
Wed Aug 1 12:14:17 UTC 2007 Olli Savia <ops@iki.fi>
* ace/OS_NS_dirent.h:
diff --git a/ACE/ace/Service_Config.h b/ACE/ace/Service_Config.h
index 169db740cf1..9bb69f5f383 100644
--- a/ACE/ace/Service_Config.h
+++ b/ACE/ace/Service_Config.h
@@ -150,14 +150,17 @@ public:
/// 2980 for a description of a test case where ACE_TSS::cleanup() is
/// called before ~ACE_Object_Manager.
-/// Note that Borland C++ 2007 *needs* the parameter name, but I don't
-/// know why ...
-
-template<> inline void
-ACE_TSS<ACE_Service_Gestalt>::cleanup (void*ptr)
-{
- ACE_UNUSED_ARG (ptr);
-}
+ACE_MT (
+ // Since ACE_TSS<>::cleanup() is only defined in
+ // multithreaded builds ...
+ template<> inline void
+ ACE_TSS<ACE_Service_Gestalt>::cleanup (void*ptr)
+ {
+ // Borland C++ 2007 *needs* the parameter
+ // name, but it is not clear why ...
+ ACE_UNUSED_ARG (ptr);
+ }
+); // ACE_MT
/**