summaryrefslogtreecommitdiff
path: root/netsvcs
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-05 13:39:17 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-05 13:39:17 +0000
commit9e80c759493bc20b02a15cb0a1fb1f0deff93872 (patch)
treee93333b79492fbc9b375ebec1231ea5e48443b0a /netsvcs
parent638fc8b3a1d638e4a3265237f9a8e1cf5d40ffa6 (diff)
downloadATCD-9e80c759493bc20b02a15cb0a1fb1f0deff93872.tar.gz
fixed template specializations
Diffstat (limited to 'netsvcs')
-rw-r--r--netsvcs/lib/Server_Logging_Handler.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/netsvcs/lib/Server_Logging_Handler.cpp b/netsvcs/lib/Server_Logging_Handler.cpp
index 8a205221dec..a565c3ff616 100644
--- a/netsvcs/lib/Server_Logging_Handler.cpp
+++ b/netsvcs/lib/Server_Logging_Handler.cpp
@@ -345,10 +345,19 @@ template class ACE_Scheduling_Strategy<ACE_Thr_Server_Logging_Handler>;
template class ACE_Server_Logging_Handler<LOGGING_PEER_STREAM, u_long, ACE_NULL_SYNCH>;
template class ACE_Strategy_Acceptor<ACE_Server_Logging_Handler<LOGGING_PEER_STREAM, u_long, ACE_NULL_SYNCH>, LOGGING_PEER_ACCEPTOR>;
template class ACE_Strategy_Acceptor<ACE_Thr_Server_Logging_Handler, LOGGING_PEER_ACCEPTOR>;
-template class ACE_Svc_Handler<LOGGING_PEER_STREAM, ACE_SYNCH>;
+
#if defined (ACE_HAS_THREADS)
-template class ACE_Svc_Handler<LOGGING_PEER_STREAM, ACE_NULL_SYNCH>;
-template class ACE_Server_Logging_Handler<LOGGING_PEER_STREAM, ACE_Atomic_Op<ACE_Thread_Mutex, u_long>, ACE_MT_SYNCH>;
+ template class ACE_Svc_Handler<LOGGING_PEER_STREAM, ACE_SYNCH>;
+ template class ACE_Svc_Handler<LOGGING_PEER_STREAM, ACE_NULL_SYNCH>;
+ template class ACE_Server_Logging_Handler<LOGGING_PEER_STREAM, ACE_Atomic_Op<ACE_Thread_Mutex, u_long>, ACE_MT_SYNCH>;
+#else
+ #if defined (ACE_HAS_TLI)
+ template class ACE_Svc_Handler<LOGGING_PEER_STREAM, ACE_SYNCH>;
+ // else if ! ACE_HAS_TLI, then LOGGING_PEER_STREAM is ACE_SOCK_STREAM,
+ // and without threads the specialization would be
+ // template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>;
+ // That specialization is in TS_Server_Handler.cpp, so we don't need it here.
+ #endif /* ACE_HAS_TLI */
#endif /* ACE_HAS_THREADS */
#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */