summaryrefslogtreecommitdiff
path: root/tests/Barrier_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
commit8825d290d8873c6ee96e27dcba1f1c8bf59d2236 (patch)
treef8913a7ba038ec752e3d98e49b18950a374a85a9 /tests/Barrier_Test.cpp
parente1b089abb1df9b1c7a5f6eabf1100b6c21ec1fe8 (diff)
downloadATCD-8825d290d8873c6ee96e27dcba1f1c8bf59d2236.tar.gz
ywhoopie!!
More new stuff, more things will break!! I have no idea about this file. Heck, I am not even Doug!
Diffstat (limited to 'tests/Barrier_Test.cpp')
-rw-r--r--tests/Barrier_Test.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/Barrier_Test.cpp b/tests/Barrier_Test.cpp
index 958411d29cf..8acf3ce62e0 100644
--- a/tests/Barrier_Test.cpp
+++ b/tests/Barrier_Test.cpp
@@ -1,6 +1,6 @@
-// ============================================================================
// $Id$
+// ============================================================================
//
// = LIBRARY
// tests
@@ -63,11 +63,14 @@ tester (Tester_Args *args)
return 0;
}
+#endif /* ACE_HAS_THREADS */
+
int
-main (int argc, char *argv[])
+main (int, char *argv[])
{
ACE_START_TEST ("Barrier_Test.cpp");
+#if defined (ACE_HAS_THREADS)
ACE_Service_Config daemon (argv[0]);
int n_threads = ACE_MAX_THREADS;
@@ -84,15 +87,10 @@ main (int argc, char *argv[])
// Wait for all the threads to reach their exit point.
ACE_Service_Config::thr_mgr ()->wait ();
-
- ACE_END_TEST;
- return 0;
-}
#else
-int
-main (int, char *[])
-{
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
+#endif /* ACE_HAS_THREADS */
+ ACE_END_TEST;
return 0;
}
-#endif /* ACE_HAS_THREADS */
+