summaryrefslogtreecommitdiff
path: root/examples/Connection/non_blocking/test_tli_connector.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-31 21:48:20 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-31 21:48:20 +0000
commitb2d8ca5a514ec1f28b4af8c2ecaa97ad5add7174 (patch)
tree1b3da514a0eb2064d0b27c62011db9492387b7dc /examples/Connection/non_blocking/test_tli_connector.cpp
parent68c15412df9797b1a3ede7304dc1c120d15c9499 (diff)
downloadATCD-b2d8ca5a514ec1f28b4af8c2ecaa97ad5add7174.tar.gz
added ACE_HAS_INSTANTIATION_PRAGMA support
Diffstat (limited to 'examples/Connection/non_blocking/test_tli_connector.cpp')
-rw-r--r--examples/Connection/non_blocking/test_tli_connector.cpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/examples/Connection/non_blocking/test_tli_connector.cpp b/examples/Connection/non_blocking/test_tli_connector.cpp
index 7f1567582fd..31846345746 100644
--- a/examples/Connection/non_blocking/test_tli_connector.cpp
+++ b/examples/Connection/non_blocking/test_tli_connector.cpp
@@ -10,10 +10,10 @@
typedef Peer_Handler<ACE_TLI_STREAM> PEER_HANDLER;
typedef IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR> IPC_CLIENT;
-
-int
-main (int argc, char *argv[])
-{
+
+int
+main (int argc, char *argv[])
+{
// Perform Service_Config initializations
ACE_Service_Config daemon (argv[0]);
@@ -21,11 +21,11 @@ main (int argc, char *argv[])
if (peer_connector.init (argc, argv) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "init"), -1);
-
+
return peer_connector.svc ();
-}
+}
-#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Connector<PEER_HANDLER, ACE_TLI_CONNECTOR>;
template class ACE_Svc_Handler<ACE_TLI_STREAM, ACE_SYNCH>;
template class ACE_Svc_Tuple<PEER_HANDLER>;
@@ -34,7 +34,17 @@ template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<PEER_HANDLER> *, ACE_S
template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<PEER_HANDLER> *, ACE_SYNCH_RW_MUTEX>;
template class IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR>;
template class Peer_Handler<ACE_TLI_STREAM>;
-#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#pragma instantiate ACE_Connector<PEER_HANDLER, ACE_TLI_CONNECTOR>
+#pragma instantiate ACE_Svc_Handler<ACE_TLI_STREAM, ACE_SYNCH>
+#pragma instantiate ACE_Svc_Tuple<PEER_HANDLER>
+#pragma instantiate ACE_Map_Entry<ACE_HANDLE, ACE_Svc_Tuple<PEER_HANDLER> *>
+#pragma instantiate ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<PEER_HANDLER> *, ACE_SYNCH_RW_MUTEX>
+#pragma instantiate ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<PEER_HANDLER> *, ACE_SYNCH_RW_MUTEX>
+#pragma instantiate IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR>
+#pragma instantiate Peer_Handler<ACE_TLI_STREAM>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
#else
int