summaryrefslogtreecommitdiff
path: root/examples/Threads
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-21 17:04:51 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-21 17:04:51 +0000
commit41c447eb0bdd6326d5caf0fb0189225724bc2d4d (patch)
tree5d1d44851c6ae99a97dd2e59b55c6b8033b18f10 /examples/Threads
parente0b3ae06ec8cc6ef0887d0605e890248fa5cb5ab (diff)
downloadATCD-41c447eb0bdd6326d5caf0fb0189225724bc2d4d.tar.gz
ChangeLogTag:Tue Sep 21 11:35:57 1999 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'examples/Threads')
-rw-r--r--examples/Threads/tss1.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/Threads/tss1.cpp b/examples/Threads/tss1.cpp
index 691150577b8..a4302bdcb5f 100644
--- a/examples/Threads/tss1.cpp
+++ b/examples/Threads/tss1.cpp
@@ -31,14 +31,6 @@ ACE_RCSID(Threads, tss1, "$Id$")
#include "thread_specific.h"
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_TSS<Errno>;
-template class Tester<ACE_MT_SYNCH>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_TSS<Errno>
-#pragma instantiate Tester<ACE_MT_SYNCH>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
// (Sun C++ 4.2 with -O3 won't link if the following is not const.)
static const int iterations = 100;
@@ -116,6 +108,14 @@ int Tester<ACE_SYNCH_USE>::close (u_long)
return 0;
}
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+template class ACE_TSS<Errno>;
+template class Tester<ACE_MT_SYNCH>;
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#pragma instantiate ACE_TSS<Errno>
+#pragma instantiate Tester<ACE_MT_SYNCH>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
int
main (int, char *[])
{