summaryrefslogtreecommitdiff
path: root/examples/Shared_Malloc
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 /examples/Shared_Malloc
parent601c1f8c15d9c4428c148277560d45529617f3ba (diff)
downloadATCD-7489f38a615aa7fb0db4181dbc31f03b806c3569.tar.gz
added template specializations
Diffstat (limited to 'examples/Shared_Malloc')
-rw-r--r--examples/Shared_Malloc/Malloc.cpp29
1 files changed, 29 insertions, 0 deletions
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 */