summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-04 17:11:10 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-04 17:11:10 +0000
commitdc920ae45b29eedb3ac485cee5c6eb9938d8fae3 (patch)
treebc0f26d2ae01012b5db8881facb142123bee8c56 /tests
parent44168807707135af41ef5bec346b3c3a2c9141cb (diff)
downloadATCD-dc920ae45b29eedb3ac485cee5c6eb9938d8fae3.tar.gz
Added use of release (count)
Diffstat (limited to 'tests')
-rw-r--r--tests/Semaphore_Test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Semaphore_Test.cpp b/tests/Semaphore_Test.cpp
index ac348b74e7b..ad18edbc592 100644
--- a/tests/Semaphore_Test.cpp
+++ b/tests/Semaphore_Test.cpp
@@ -136,8 +136,7 @@ int main (int argc, char *argv[])
test_timeout ();
// Initialize the semaphore to a certain number
- for (i = 0; i < n_semcount; i++)
- s.release ();
+ s.release (n_semcount);
if (ACE_Thread_Manager::instance ()->spawn_n (n_workers,
ACE_THR_FUNC (worker),