diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-02 21:28:38 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-02 21:28:38 +0000 |
commit | e599c83dcc587300839b9c545e22e6ec9dd9c4e1 (patch) | |
tree | a833776cbf5f349c89cd9d24ef7590c3e62aaf1a /ace | |
parent | 36a601efc71c41de37f55f3efe9f4bc4b0716bd5 (diff) | |
download | ATCD-e599c83dcc587300839b9c545e22e6ec9dd9c4e1.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Task.cpp | 8 |
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 |