summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-08 18:05:42 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-08 18:05:42 +0000
commit9257df54601f9e8b291c06374d39c5e822cee7a8 (patch)
treedec11c85729a69c7e94ec2404a0e821db352b1e8
parente2513473f4aac7896e7547f489da73588f1f2530 (diff)
downloadATCD-9257df54601f9e8b291c06374d39c5e822cee7a8.tar.gz
Made sure we don't the grp_id when activating the task if it was activated previously.
-rw-r--r--ace/Task.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Task.cpp b/ace/Task.cpp
index 92e04ba89e1..9295fe094c9 100644
--- a/ace/Task.cpp
+++ b/ace/Task.cpp
@@ -88,11 +88,11 @@ ACE_Task_Base::activate (long flags,
return 1; // Already active.
else
{
- this->thr_count_ += n_threads;
if (this->thr_count_ > 0 && grp_id != -1)
// If we're joining an existing group of threads then make
// sure to use its group id.
grp_id = this->grp_id_;
+ this->thr_count_ += n_threads;
}
// Use the ACE_Thread_Manager singleton if we're running as an