diff options
Diffstat (limited to 'ace/Task.i')
-rw-r--r-- | ace/Task.i | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ace/Task.i b/ace/Task.i index 798606a68ae..fd9f992579b 100644 --- a/ace/Task.i +++ b/ace/Task.i @@ -98,11 +98,17 @@ ACE_Task_Base::grp_id (void) const } // Set the current group id. + ACE_INLINE void ACE_Task_Base::grp_id (int id) { ACE_TRACE ("ACE_Task_Base::grp_id"); ACE_MT (ACE_GUARD (ACE_Thread_Mutex, ace_mon, this->lock_)); + + // Cache the group id in the task and then set it in the + // Thread_Manager, if there is one. this->grp_id_ = id; + if (this->thr_mgr ()) + this->thr_mgr ()->set_grp (this, id); } |