summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-12 01:59:35 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-12 01:59:35 +0000
commit32f945afcb4fe3d95b870a5c3f5938d7fe2fcbf7 (patch)
tree078478da7ed7ed58b38fdff3375789e3b17137a2
parent5664a15539b7a46f47543bfc12dca042a852f42a (diff)
downloadATCD-32f945afcb4fe3d95b870a5c3f5938d7fe2fcbf7.tar.gz
fixed template specializations for no-thread platforms
-rw-r--r--apps/Gateway/Gateway/Proxy_Handler_Connector.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/Gateway/Gateway/Proxy_Handler_Connector.cpp b/apps/Gateway/Gateway/Proxy_Handler_Connector.cpp
index 29d823f705c..bcbd590efc0 100644
--- a/apps/Gateway/Gateway/Proxy_Handler_Connector.cpp
+++ b/apps/Gateway/Gateway/Proxy_Handler_Connector.cpp
@@ -94,10 +94,17 @@ Proxy_Handler_Connector::initiate_connection (Proxy_Handler *proxy_handler,
#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
template class ACE_Connector<Proxy_Handler, ACE_SOCK_CONNECTOR>;
-template class ACE_Guard<ACE_RW_Mutex>;
-template class ACE_Map_Iterator<int, ACE_Svc_Tuple<Proxy_Handler> *, ACE_RW_Mutex>;
-template class ACE_Map_Manager<int, ACE_Svc_Tuple<Proxy_Handler> *, ACE_RW_Mutex>;
-template class ACE_Read_Guard<ACE_RW_Mutex>;
template class ACE_Svc_Tuple<Proxy_Handler>;
-template class ACE_Write_Guard<ACE_RW_Mutex>;
+#if defined (ACE_MT_SAFE)
+ template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<Proxy_Handler> *, ACE_RW_Mutex>;
+ template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Proxy_Handler> *, ACE_RW_Mutex>;
+ template class ACE_Map_Entry<ACE_HANDLE, ACE_Svc_Tuple<Proxy_Handler> *>;
+ template class ACE_Guard<ACE_RW_Mutex>;
+ template class ACE_Read_Guard<ACE_RW_Mutex>;
+ template class ACE_Write_Guard<ACE_RW_Mutex>;
+#else
+ template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<Proxy_Handler> *, ACE_Null_Mutex>;
+ template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Proxy_Handler> *, ACE_Null_Mutex>;
+ template class ACE_Map_Entry<ACE_HANDLE, ACE_Svc_Tuple<Proxy_Handler> *>;
+#endif /* ACE_MT_SAFE */
#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */