diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-03 00:02:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-03 00:02:34 +0000 |
commit | b27ae7d40fa85fe11424bf0255f24c444ad6ac3d (patch) | |
tree | cc28cbdf591f4c505ffbe8bf7ff95de6a2dd5ca8 /examples/ASX | |
parent | 806883bd7b9d8cb2fa79af794fcc34e63dc79961 (diff) | |
download | ATCD-b27ae7d40fa85fe11424bf0255f24c444ad6ac3d.tar.gz |
added template specializations to transceiver.cpp so that it no longer needs to be linked with libGateway
Diffstat (limited to 'examples/ASX')
-rw-r--r-- | examples/ASX/Event_Server/Transceiver/Makefile | 2 | ||||
-rw-r--r-- | examples/ASX/Event_Server/Transceiver/transceiver.cpp | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/examples/ASX/Event_Server/Transceiver/Makefile b/examples/ASX/Event_Server/Transceiver/Makefile index 8ef56cdc12c..ab99fe70e36 100644 --- a/examples/ASX/Event_Server/Transceiver/Makefile +++ b/examples/ASX/Event_Server/Transceiver/Makefile @@ -11,8 +11,6 @@ BIN = transceiver VLDLIBS = $(LDLIBS:%=%$(VAR)) -#### -lGateway is needed for template instantiations with g++ -fno-implicit-templates -LIBS = -lGateway BUILD = $(VBIN) diff --git a/examples/ASX/Event_Server/Transceiver/transceiver.cpp b/examples/ASX/Event_Server/Transceiver/transceiver.cpp index 86e1de48f7d..369b9fb42d0 100644 --- a/examples/ASX/Event_Server/Transceiver/transceiver.cpp +++ b/examples/ASX/Event_Server/Transceiver/transceiver.cpp @@ -207,7 +207,16 @@ main (int argc, char *argv[]) #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) template class ACE_Connector<Event_Transceiver, ACE_SOCK_CONNECTOR>; +template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; template class ACE_Svc_Tuple<Event_Transceiver>; template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Event_Transceiver> *, ACE_SYNCH_RW_MUTEX>; template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<Event_Transceiver> *, ACE_SYNCH_RW_MUTEX>; + +#if defined (ACE_HAS_THREADS) + template class ACE_Guard<ACE_SYNCH_RW_MUTEX>; + template class ACE_Read_Guard<ACE_SYNCH_RW_MUTEX>; + template class ACE_Write_Guard<ACE_SYNCH_RW_MUTEX>; +#else + // These are specialized in libACE if ACE doesn't have threads. +#endif /* ACE_HAS_THREADS */ #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ |