summaryrefslogtreecommitdiff
path: root/tests/Thread_Pool_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-10 19:12:46 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-10 19:12:46 +0000
commitba3d239c56db331f9b88d597e1fcd9a64a193825 (patch)
tree5fb6f54c20bb0549d8af2d7bccfaffb6ca5801fd /tests/Thread_Pool_Test.cpp
parentabf7dedf4a24d1493953c27c368242e3be1175b8 (diff)
downloadATCD-ba3d239c56db331f9b88d597e1fcd9a64a193825.tar.gz
ChangeLogTag:Sat Jul 10 13:16:50 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'tests/Thread_Pool_Test.cpp')
-rw-r--r--tests/Thread_Pool_Test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Thread_Pool_Test.cpp b/tests/Thread_Pool_Test.cpp
index b840cbe28bd..631d2c05df6 100644
--- a/tests/Thread_Pool_Test.cpp
+++ b/tests/Thread_Pool_Test.cpp
@@ -203,9 +203,8 @@ Thread_Pool::open (void *)
&this->lock_adapter_),
-1);
- int i; // We need to define 'i' here to keep EGCS from complaining...
-
- for (i = this->thr_count (); i > 0; i--)
+ int i = this->thr_count ();
+ while (i > 0)
{
ACE_DEBUG ((LM_DEBUG,
ASYS_TEXT ("(%t) EOF, enqueueing NULL block for thread = %d\n"),
@@ -220,6 +219,7 @@ Thread_Pool::open (void *)
ACE_ERROR ((LM_ERROR,
ASYS_TEXT (" (%t) %p\n"),
ASYS_TEXT ("put")));
+ i--;
}
mb->release ();