summaryrefslogtreecommitdiff
path: root/ace/Module.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-09 04:55:56 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-09 04:55:56 +0000
commitaddafc86107ca1e642c1ed1f2b634aabbae1558c (patch)
treeb32bf9d335bfb489169ff4e48a944d481cb11775 /ace/Module.cpp
parent1caed6b960388384e58af42f411f48dc429340fe (diff)
downloadATCD-addafc86107ca1e642c1ed1f2b634aabbae1558c.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Module.cpp')
-rw-r--r--ace/Module.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Module.cpp b/ace/Module.cpp
index 2c03705c28e..bb0d282fa1e 100644
--- a/ace/Module.cpp
+++ b/ace/Module.cpp
@@ -221,8 +221,11 @@ ACE_Module<ACE_SYNCH_2>::close_i (int which,
{
// Only delete the Tasks if there aren't any more threads
// running in them.
- if (task->thr_count () == 0)
- delete task;
+ task->wait ();
+
+ ACE_ASSERT (task->thr_count () == 0);
+
+ delete task;
}
// Set the tasks pointer to 0 so that we don't try to close()