summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-29 15:11:38 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-29 15:11:38 +0000
commit5eeeece276c25feaec374bd308d581e710885a6b (patch)
tree9407b9b1f65b876ab5f7de27443b76b86a94c218
parent4ff52a105cac2a103d78f68e6fdf9c22b88fb2cc (diff)
downloadATCD-5eeeece276c25feaec374bd308d581e710885a6b.tar.gz
moved template specializations so that they're not done on platforms that don't support SV shm
-rw-r--r--tests/SV_Shared_Memory_Test.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/SV_Shared_Memory_Test.cpp b/tests/SV_Shared_Memory_Test.cpp
index e7e9eee727c..ce1aab0b3e2 100644
--- a/tests/SV_Shared_Memory_Test.cpp
+++ b/tests/SV_Shared_Memory_Test.cpp
@@ -86,6 +86,14 @@ child (char *shm)
ACE_ERROR_RETURN ((LM_ERROR, "(%P) child synch.release"), 1);
return 0;
}
+
+#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+template class ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple>;
+template class ACE_Guard<ACE_SV_Semaphore_Simple>;
+template class ACE_Write_Guard<ACE_SV_Semaphore_Simple>;
+template class ACE_Read_Guard<ACE_SV_Semaphore_Simple>;
+#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
+
#endif /* ACE_HAS_SYSV_IPC */
int
@@ -115,10 +123,3 @@ main (int, char *[])
ACE_END_TEST;
return 0;
}
-
-#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
-template class ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple>;
-template class ACE_Guard<ACE_SV_Semaphore_Simple>;
-template class ACE_Write_Guard<ACE_SV_Semaphore_Simple>;
-template class ACE_Read_Guard<ACE_SV_Semaphore_Simple>;
-#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */