summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-31 15:00:41 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-31 15:00:41 +0000
commit7489f38a615aa7fb0db4181dbc31f03b806c3569 (patch)
treec943ca5ed57df718d13dde2fb07c7c25c3449ae1
parent601c1f8c15d9c4428c148277560d45529617f3ba (diff)
downloadATCD-7489f38a615aa7fb0db4181dbc31f03b806c3569.tar.gz
added template specializations
-rw-r--r--examples/Logger/Acceptor-server/server_loggerd.cpp15
-rw-r--r--examples/Reactor/Misc/pingpong.cpp5
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp13
-rw-r--r--examples/Shared_Malloc/Malloc.cpp29
4 files changed, 60 insertions, 2 deletions
diff --git a/examples/Logger/Acceptor-server/server_loggerd.cpp b/examples/Logger/Acceptor-server/server_loggerd.cpp
index d54871311a3..3b28a29b408 100644
--- a/examples/Logger/Acceptor-server/server_loggerd.cpp
+++ b/examples/Logger/Acceptor-server/server_loggerd.cpp
@@ -250,3 +250,18 @@ main (int argc, char *argv[])
return 0;
}
+
+
+#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+template class ACE_Acceptor<Logging_Handler, ACE_SOCK_ACCEPTOR>;
+template class ACE_Message_Queue<ACE_NULL_SYNCH>;
+template class ACE_Module<ACE_NULL_SYNCH>;
+template class ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>;
+template class ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex>;
+template class ACE_Singleton<Options, ACE_Null_Mutex>;
+template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>;
+template class ACE_TSS<ACE_Dynamic>;
+template class ACE_Task<ACE_NULL_SYNCH>;
+template class ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>;
+template class ACE_Thru_Task<ACE_NULL_SYNCH>;
+#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
diff --git a/examples/Reactor/Misc/pingpong.cpp b/examples/Reactor/Misc/pingpong.cpp
index 9673eae90dd..3b515fc5d40 100644
--- a/examples/Reactor/Misc/pingpong.cpp
+++ b/examples/Reactor/Misc/pingpong.cpp
@@ -237,3 +237,8 @@ main (int argc, char *argv[])
return 0;
}
+
+
+#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+template class ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>;
+#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp b/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
index 71a3c10e556..7d6b088ba3b 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
@@ -186,8 +186,17 @@ HANDLE_THR_ACCEPTOR remote_thr_stream;
ACE_Service_Object_Type rts (&remote_thr_stream, "Remote_Thr_Stream");
#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
-template class CLI_Stream<THR_STREAM>;
-template class Handle_Thr_Acceptor<CLI_Stream<THR_STREAM>, THR_ACCEPTOR>;
+template class ACE_Acceptor<CLI_STREAM, ACE_TLI_ACCEPTOR>;
+template class ACE_Accept_Strategy<CLI_STREAM, ACE_TLI_ACCEPTOR>;
+template class ACE_Concurrency_Strategy<CLI_STREAM>;
+template class ACE_Creation_Strategy<CLI_STREAM>;
+template class ACE_Scheduling_Strategy<CLI_STREAM>;
+template class ACE_Strategy_Acceptor<CLI_STREAM, ACE_TLI_ACCEPTOR>;
+template class ACE_Svc_Handler<ACE_TLI_STREAM, ACE_MT_SYNCH>;
+template class ACE_TSS<ACE_Dynamic>;
+template class ACE_Thread_Strategy<CLI_STREAM>;
+template class CLI_Stream <THR_STREAM>;
+template class Handle_Thr_Acceptor<CLI_STREAM, THR_ACCEPTOR>;
#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
#endif /* ACE_HAS_THREADS */
diff --git a/examples/Shared_Malloc/Malloc.cpp b/examples/Shared_Malloc/Malloc.cpp
index 78759527377..c0ddc352df5 100644
--- a/examples/Shared_Malloc/Malloc.cpp
+++ b/examples/Shared_Malloc/Malloc.cpp
@@ -58,3 +58,32 @@ Malloc::instance (void)
return Malloc::instance_;
}
+
+
+#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+template class ACE_Allocator_Adapter<L_ALLOCATOR>;
+template class ACE_Allocator_Adapter<M_ALLOCATOR>;
+template class ACE_Allocator_Adapter<SB_ALLOCATOR>;
+template class ACE_Allocator_Adapter<SP_ALLOCATOR>;
+template class ACE_Allocator_Adapter<ST_ALLOCATOR>;
+template class ACE_Guard<ACE_Process_Mutex>;
+template class ACE_Malloc <ACE_LOCAL_MEMORY_POOL, THREAD_MUTEX>;
+template class ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex>;
+template class ACE_Read_Guard<ACE_Process_Mutex>;
+template class ACE_Read_Guard<THREAD_MUTEX>;
+template class ACE_Write_Guard<ACE_Process_Mutex>;
+template class ACE_Write_Guard<THREAD_MUTEX>;
+
+#if defined (ACE_LACKS_SYSV_SHMEM)
+template class ACE_Malloc <ACE_MMAP_MEMORY_POOL, THREAD_MUTEX>;
+#else
+template class ACE_Malloc <ACE_SHARED_MEMORY_POOL, ACE_Process_Mutex>;
+template class ACE_Malloc <ACE_SHARED_MEMORY_POOL, THREAD_MUTEX>;
+#endif /* ACE_LACKS_SYSV_SHMEM */
+
+#if defined (ACE_LACKS_SBRK)
+template class ACE_Malloc <ACE_LOCAL_MEMORY_POOL, THREAD_MUTEX>;
+#else
+template class ACE_Malloc <ACE_SBRK_MEMORY_POOL, THREAD_MUTEX>;
+#endif /* ACE_LACKS_SBRK */
+#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */