summaryrefslogtreecommitdiff
path: root/ace/Task.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-02 21:28:38 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-02 21:28:38 +0000
commite599c83dcc587300839b9c545e22e6ec9dd9c4e1 (patch)
treea833776cbf5f349c89cd9d24ef7590c3e62aaf1a /ace/Task.cpp
parent36a601efc71c41de37f55f3efe9f4bc4b0716bd5 (diff)
downloadATCD-e599c83dcc587300839b9c545e22e6ec9dd9c4e1.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Task.cpp')
-rw-r--r--ace/Task.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/Task.cpp b/ace/Task.cpp
index ada163c6bf7..ed3f1cf599d 100644
--- a/ace/Task.cpp
+++ b/ace/Task.cpp
@@ -122,7 +122,13 @@ ACE_Task_Base::activate (long flags,
stack_size,
thread_handles);
if (this->grp_id_ == -1)
- return -1;
+ {
+ // @@ This isn't 100% correct since spawn_n() may have spawned
+ // some threads before it failed. However, this is better than
+ // nothing...
+ this->thr_count_ -= n_threads;
+ return -1;
+ }
else
return 0;
#else