summaryrefslogtreecommitdiff
path: root/tests/Notify_Performance_Test.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-16 23:19:20 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-16 23:19:20 +0000
commit68f39e776a33323b60b71fb7df917edf91cfe904 (patch)
tree88056425caab3c76023207229203d7bc60e72bbf /tests/Notify_Performance_Test.cpp
parentfe78fd0812f32f33df35cced121eb884d2ded0b7 (diff)
downloadATCD-68f39e776a33323b60b71fb7df917edf91cfe904.tar.gz
*** empty log message ***
Diffstat (limited to 'tests/Notify_Performance_Test.cpp')
-rw-r--r--tests/Notify_Performance_Test.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/tests/Notify_Performance_Test.cpp b/tests/Notify_Performance_Test.cpp
index a8e25879da0..c3158933831 100644
--- a/tests/Notify_Performance_Test.cpp
+++ b/tests/Notify_Performance_Test.cpp
@@ -85,8 +85,6 @@ client (void *arg)
return 0;
}
-#endif /* ACE_HAS_THREADS */
-
// Sets up the correct reactor (based on platform and options)
void
create_reactor (void)
@@ -141,8 +139,6 @@ main (int argc, char *argv[])
{
ACE_START_TEST ("Notify_Performance_Test");
-#if defined (ACE_HAS_THREADS)
-
ACE_Get_Opt getopt (argc, argv, "swdc:l:", 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
@@ -207,10 +203,6 @@ main (int argc, char *argv[])
// Wait for all worker to get done.
ACE_Thread_Manager::instance ()->wait ();
-#else
- ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
-#endif /* ACE_HAS_THREADS */
-
ACE_END_TEST;
return 0;
}
@@ -228,3 +220,18 @@ template class ACE_Atomic_Op<ACE_Thread_Mutex, long>;
#pragma instantiate ACE_Auto_Basic_Ptr<ACE_Reactor_Impl>
#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, long>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#else
+int
+main (int, char *[])
+{
+ ACE_START_TEST ("Notify_Performance_Test");
+
+ ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
+
+ ACE_END_TEST;
+ return 0;
+}
+#endif /* ACE_HAS_THREADS */
+
+