summaryrefslogtreecommitdiff
path: root/TAO/tao/Leader_Follower.i
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-19 00:33:31 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-19 00:33:31 +0000
commit624d4e7f3c615d072bc7b251cb094f264c72b33a (patch)
treee3cc6d79bda521abd93aa061928aa1a22384cfe4 /TAO/tao/Leader_Follower.i
parenteafd46be08358d7b8c8e0c7f4a847169b0480f54 (diff)
downloadATCD-624d4e7f3c615d072bc7b251cb094f264c72b33a.tar.gz
ChangeLogTag: Wed Jul 18 19:22:48 2001 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Leader_Follower.i')
-rw-r--r--TAO/tao/Leader_Follower.i7
1 files changed, 3 insertions, 4 deletions
diff --git a/TAO/tao/Leader_Follower.i b/TAO/tao/Leader_Follower.i
index ef81c8f664d..05615d8396b 100644
--- a/TAO/tao/Leader_Follower.i
+++ b/TAO/tao/Leader_Follower.i
@@ -141,7 +141,7 @@ TAO_Leader_Follower::set_client_leader_thread (void)
{
TAO_ORB_Core_TSS_Resources *tss = this->get_tss_resources ();
++this->leaders_;
- this->client_thread_is_leader_ = 1;
+ ++this->client_thread_is_leader_;
++tss->client_leader_thread_;
}
@@ -151,7 +151,7 @@ TAO_Leader_Follower::reset_client_leader_thread (void)
TAO_ORB_Core_TSS_Resources *tss = this->get_tss_resources ();
--tss->client_leader_thread_;
--this->leaders_;
- this->client_thread_is_leader_ = 0;
+ --this->client_thread_is_leader_;
}
ACE_INLINE int
@@ -240,8 +240,7 @@ TAO_LF_Event_Loop_Thread_Helper::TAO_LF_Event_Loop_Thread_Helper (TAO_Leader_Fol
ACE_INLINE
TAO_LF_Event_Loop_Thread_Helper::~TAO_LF_Event_Loop_Thread_Helper (void)
-{
+{
this->lf_strategy_.reset_event_loop_thread_and_elect_new_leader (this->call_reset_,
this->leader_follower_);
}
-