summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 22:22:18 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 22:22:18 +0000
commit789430d96a14ef16201d0a2d6af82899247796d4 (patch)
tree03863fef358776b9205aa66b1fd811b8a2da9f52
parent5a73ca162ef0f950fb0d4378d33f7907227caa70 (diff)
downloadATCD-789430d96a14ef16201d0a2d6af82899247796d4.tar.gz
*** empty log message ***
-rw-r--r--ChangeLog-98b4
-rw-r--r--examples/Threads/task_five.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog-98b b/ChangeLog-98b
index 98ce7f59da2..e234a0b1d5a 100644
--- a/ChangeLog-98b
+++ b/ChangeLog-98b
@@ -1,5 +1,9 @@
Thu Jun 18 16:25:28 1998 Nanbor Wang <nanbor@cs.wustl.edu>
+ * examples/Threads/task_five.cpp (main): Extracted out the body of
+ the test loop so that the delete[] gets called everytime the
+ body gets executed.
+
* ace/Thread_Manager.cpp (ACE_EXECUTE_OP,kill): We need to guard
against non-existing target thread after searching the thread
table. Thanks to Savas Parastatidis
diff --git a/examples/Threads/task_five.cpp b/examples/Threads/task_five.cpp
index ea758b030c0..4417d295c84 100644
--- a/examples/Threads/task_five.cpp
+++ b/examples/Threads/task_five.cpp
@@ -139,7 +139,7 @@ main (int argc, char *argv[])
ACE_Thread_Manager *thr_mgr = ACE_Service_Config::thr_mgr ();
- for (size_t cntr = 0; cntr < 2; cntr++)
+ for (;;)
work (thr_mgr, n_tasks, stack_size);
ACE_NOTREACHED (return 0);
}