summaryrefslogtreecommitdiff
path: root/examples/Threads/task_four.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-20 15:03:09 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-20 15:03:09 +0000
commit2187ce5cac5366911e729309c2f72cdf62e4119f (patch)
tree8c0d5b79a38f89caf86c7b7e1aafc77c1b81edf0 /examples/Threads/task_four.cpp
parent721d8ee01737482b11f2600aaf757af550a2ddfc (diff)
downloadATCD-2187ce5cac5366911e729309c2f72cdf62e4119f.tar.gz
moved declaration of "task" out of for loop because it is also used after the for loop
Diffstat (limited to 'examples/Threads/task_four.cpp')
-rw-r--r--examples/Threads/task_four.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/Threads/task_four.cpp b/examples/Threads/task_four.cpp
index 87a2f3abfa8..59f9ecbdf6a 100644
--- a/examples/Threads/task_four.cpp
+++ b/examples/Threads/task_four.cpp
@@ -145,7 +145,9 @@ Invoker_Task::svc (void)
ACE_Thread_Manager *thr_mgr = ACE_Service_Config::thr_mgr ();
Worker_Task **pTask = new Worker_Task* [n_tasks_];
- for (int task = 0;
+ int task;
+
+ for (task = 0;
task < this->n_tasks_;
task++)
{