diff options
Diffstat (limited to 'netsvcs')
-rw-r--r-- | netsvcs/lib/Client_Logging_Handler.cpp | 10 | ||||
-rw-r--r-- | netsvcs/lib/TS_Clerk_Handler.cpp | 16 |
2 files changed, 19 insertions, 7 deletions
diff --git a/netsvcs/lib/Client_Logging_Handler.cpp b/netsvcs/lib/Client_Logging_Handler.cpp index 81c01d89ecc..9d140dbc650 100644 --- a/netsvcs/lib/Client_Logging_Handler.cpp +++ b/netsvcs/lib/Client_Logging_Handler.cpp @@ -358,9 +358,15 @@ ACE_Client_Logging_Connector::resume (void) ACE_SVC_FACTORY_DEFINE (ACE_Client_Logging_Connector) +#if defined (ACE_MT_SAFE) +typedef ACE_RW_Mutex RW_MUTEX; +#else +typedef ACE_Null_Mutex RW_MUTEX; +#endif /* ACE_MT_SAFE */ + #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) template class ACE_Connector<ACE_Client_Logging_Handler, ACE_SOCK_CONNECTOR>; -template class ACE_Map_Iterator<int, ACE_Svc_Tuple<ACE_Client_Logging_Handler> *, ACE_RW_Mutex>; -template class ACE_Map_Manager<int, ACE_Svc_Tuple<ACE_Client_Logging_Handler> *, ACE_RW_Mutex>; template class ACE_Svc_Tuple<ACE_Client_Logging_Handler>; +template class ACE_Map_Iterator<int, ACE_Svc_Tuple<ACE_Client_Logging_Handler> *, RW_MUTEX>; +template class ACE_Map_Manager<int, ACE_Svc_Tuple<ACE_Client_Logging_Handler> *, RW_MUTEX>; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ diff --git a/netsvcs/lib/TS_Clerk_Handler.cpp b/netsvcs/lib/TS_Clerk_Handler.cpp index 8632e28cc53..dfdfb84f00e 100644 --- a/netsvcs/lib/TS_Clerk_Handler.cpp +++ b/netsvcs/lib/TS_Clerk_Handler.cpp @@ -802,15 +802,21 @@ ACE_TS_Clerk_Processor::resume (void) ACE_SVC_FACTORY_DEFINE (ACE_TS_Clerk_Processor) +#if defined (ACE_MT_SAFE) +typedef ACE_RW_Mutex RW_MUTEX; +#else +typedef ACE_Null_Mutex RW_MUTEX; +#endif /* ACE_MT_SAFE */ + #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) template class ACE_Connector<ACE_TS_Clerk_Handler, ACE_SOCK_CONNECTOR>; -template class ACE_Guard<ACE_RW_Mutex>; -template class ACE_Map_Iterator<int, ACE_Svc_Tuple<ACE_TS_Clerk_Handler> *, ACE_RW_Mutex>; -template class ACE_Map_Manager<int, ACE_Svc_Tuple<ACE_TS_Clerk_Handler> *, ACE_RW_Mutex>; -template class ACE_Read_Guard<ACE_RW_Mutex>; template class ACE_Set_Node<ACE_TS_Clerk_Handler *>; template class ACE_Svc_Tuple<ACE_TS_Clerk_Handler>; template class ACE_Unbounded_Set<ACE_TS_Clerk_Handler *>; template class ACE_Unbounded_Set_Iterator<ACE_TS_Clerk_Handler *>; -template class ACE_Write_Guard<ACE_RW_Mutex>; +template class ACE_Map_Iterator<int, ACE_Svc_Tuple<ACE_TS_Clerk_Handler> *, RW_MUTEX>; +template class ACE_Map_Manager<int, ACE_Svc_Tuple<ACE_TS_Clerk_Handler> *, RW_MUTEX>; +template class ACE_Guard<RW_MUTEX>; +template class ACE_Read_Guard<RW_MUTEX>; +template class ACE_Write_Guard<RW_MUTEX>; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ |