summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-12-30 23:46:24 +0000
committerSteve Huston <shuston@riverace.com>2002-12-30 23:46:24 +0000
commitf428c301c68d6436dfdffb1115bc4f5a7ce31cef (patch)
treee8ebf77d90520a410d864739dfdaffdfad57c5c4 /examples
parent13c4050c4c1aaac4f8c38ca9cca7fd27b5b8870c (diff)
downloadATCD-f428c301c68d6436dfdffb1115bc4f5a7ce31cef.tar.gz
ChangeLogTag:Mon Dec 30 18:44:20 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/C++NPv2/TP_Logging_Server.cpp5
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp3
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp3
-rw-r--r--examples/Logger/Acceptor-server/server_loggerd.cpp7
-rw-r--r--examples/Logger/simple-server/server_loggerd.cpp4
-rw-r--r--examples/Threads/auto_event.cpp4
-rw-r--r--examples/Threads/tss2.cpp3
7 files changed, 27 insertions, 2 deletions
diff --git a/examples/C++NPv2/TP_Logging_Server.cpp b/examples/C++NPv2/TP_Logging_Server.cpp
index 99ca486d740..251179032a9 100644
--- a/examples/C++NPv2/TP_Logging_Server.cpp
+++ b/examples/C++NPv2/TP_Logging_Server.cpp
@@ -66,4 +66,9 @@ ACE_FACTORY_DEFINE (TPLS, TP_Logging_Server)
template class Reactor_Logging_Server<TP_Logging_Acceptor>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate Reactor_Logging_Server<TP_Logging_Acceptor>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_Singleton<TP_Logging_Task, ACE_Null_Mutex> *
+ ACE_Singleton<TP_Logging_Task, ACE_Null_Mutex>::singleton_;
+template ACE_Unmanaged_Singleton<TP_Logging_Task, ACE_Null_Mutex> *
+ ACE_Unmanaged_Singleton<TP_Logging_Task, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
index a0889dd7f32..fe6e0dbc906 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
@@ -420,4 +420,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
template class ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> *
+ ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
index 9e1356c45cd..ff3c5d78531 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
@@ -581,4 +581,7 @@ template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>
#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> *
+ ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/examples/Logger/Acceptor-server/server_loggerd.cpp b/examples/Logger/Acceptor-server/server_loggerd.cpp
index 136bb29c2ec..da1591602f3 100644
--- a/examples/Logger/Acceptor-server/server_loggerd.cpp
+++ b/examples/Logger/Acceptor-server/server_loggerd.cpp
@@ -228,4 +228,11 @@ template class ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>;
#pragma instantiate ACE_Singleton<Options, ACE_Null_Mutex>
#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
#pragma instantiate ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> *
+ ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>::singleton_;
+template ACE_Singleton<Options, ACE_Null_Mutex> *
+ ACE_Singleton<Options, ACE_Null_Mutex>::singleton_;
+template ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex> *
+ ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/examples/Logger/simple-server/server_loggerd.cpp b/examples/Logger/simple-server/server_loggerd.cpp
index d35c6c8eb15..aaef80e5406 100644
--- a/examples/Logger/simple-server/server_loggerd.cpp
+++ b/examples/Logger/simple-server/server_loggerd.cpp
@@ -82,5 +82,7 @@ main (int argc, char *argv[])
template class ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> *
+ ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
diff --git a/examples/Threads/auto_event.cpp b/examples/Threads/auto_event.cpp
index 24260940a67..30640e8791a 100644
--- a/examples/Threads/auto_event.cpp
+++ b/examples/Threads/auto_event.cpp
@@ -106,6 +106,9 @@ ACE_TMAIN (int argc, ACE_TCHAR **argv)
template class ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex> *
+ ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
@@ -117,4 +120,3 @@ ACE_TMAIN (int, ACE_TCHAR *[])
return 0;
}
#endif /* ACE_HAS_THREADS */
-
diff --git a/examples/Threads/tss2.cpp b/examples/Threads/tss2.cpp
index 4cc9a7198a0..b74b605b30a 100644
--- a/examples/Threads/tss2.cpp
+++ b/examples/Threads/tss2.cpp
@@ -193,6 +193,9 @@ template class ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX>;
#pragma instantiate ACE_TSS<TSS_Data>
#pragma instantiate ACE_TSS<TSS_Obj>
#pragma instantiate ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX>
+#elif defined (__GNUC__) && defined (_AIX)
+template ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX> *
+ ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */