summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-09-13 20:59:15 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-09-13 20:59:15 +0000
commitf92f85e3ed0248b9b2066f0d3aacabe72ba86a69 (patch)
treeb7085030a37d1c2150a6cfa47d72856b5fd6b02d /tests
parent20574de3e8be532fdf4fe9fdc019a1b07c54e5a5 (diff)
downloadATCD-f92f85e3ed0248b9b2066f0d3aacabe72ba86a69.tar.gz
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/Reactors_Test.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/tests/Reactors_Test.cpp b/tests/Reactors_Test.cpp
index 01ccc00c74c..0cffe6c416f 100644
--- a/tests/Reactors_Test.cpp
+++ b/tests/Reactors_Test.cpp
@@ -26,7 +26,7 @@
ACE_Thread_Manager *tm;
-static const int MAX_TASKS = 2;
+static const int MAX_TASKS = 20;
class Test_Task : public ACE_Task<ACE_MT_SYNCH>
// = TITLE
@@ -105,9 +105,6 @@ Test_Task::close (u_long)
if (Test_Task::task_count_ < 0)
abort ();
- ACE_DEBUG ((LM_DEBUG, "(%t) dump in close for %x\n", this));
- ACE_Thread_Manager::instance ()->dump ();
-
return 0;
}
@@ -116,8 +113,6 @@ Test_Task::svc (void)
{
ACE_NEW_THREAD;
- ACE_DEBUG ((LM_DEBUG, "(%t) svc\n"));
-
for (int i = 0; i < ACE_MAX_ITERATIONS; i++)
{
ACE_OS::thr_yield ();
@@ -221,9 +216,6 @@ main (int, char *[])
tt2[i].open (reactor);
}
- ACE_DEBUG ((LM_DEBUG, "(%t) first dump in main\n"));
- ACE_Thread_Manager::instance ()->dump ();
-
// Spawn two threads each running a different reactor.
if (ACE_Thread_Manager::instance ()->spawn
@@ -237,24 +229,14 @@ main (int, char *[])
THR_BOUND | THR_DETACHED) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "spawn"), -1);
- ACE_DEBUG ((LM_DEBUG, "(%t) second dump in main\n"));
- ACE_Thread_Manager::instance ()->dump ();
-
- ACE_DEBUG ((LM_DEBUG, "(%t) starting to wait \n"));
-
if (ACE_Thread_Manager::instance ()->wait () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "wait"), -1);
- ACE_DEBUG ((LM_DEBUG, "(%t) third dump in main\n"));
-
- ACE_DEBUG ((LM_DEBUG, "(%t) all threads are finished \n"));
-
reactor->close ();
delete reactor;
// Note that the destructor of ACE_Service_Config daemon will close
// down the ACE_Reactor::instance().
- ACE_DEBUG ((LM_DEBUG, "(%t) exiting main\n"));
#else
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
#endif /* ACE_HAS_THREADS */