summaryrefslogtreecommitdiff
path: root/TAO/tao/Leader_Follower.cpp
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-03-29 22:35:02 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-03-29 22:35:02 +0000
commit846b4c19c44398c67a984df2e247e2499809f90b (patch)
tree8b5a19fd6bff408ff1e0404fe1dc591dc97a28b9 /TAO/tao/Leader_Follower.cpp
parent5fa925adda35228b01687bcb378f61fba370db66 (diff)
downloadATCD-846b4c19c44398c67a984df2e247e2499809f90b.tar.gz
ChangeLogTag: Sat Mar 29 16:30:29 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Leader_Follower.cpp')
-rw-r--r--TAO/tao/Leader_Follower.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/tao/Leader_Follower.cpp b/TAO/tao/Leader_Follower.cpp
index 80cb12c80b3..d6dc4f08275 100644
--- a/TAO/tao/Leader_Follower.cpp
+++ b/TAO/tao/Leader_Follower.cpp
@@ -176,6 +176,8 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
// Obtain the lock.
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock (), -1);
+ ACE_Countdown_Time countdown (max_wait_time);
+
// Optmize the first iteration [no access to errno]
int result = 1;
@@ -197,8 +199,6 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
TAO_LF_Client_Thread_Helper client_thread_helper (*this);
ACE_UNUSED_ARG (client_thread_helper);
- ACE_Countdown_Time countdown (max_wait_time);
-
// Check if there is a leader. Note that it cannot be us since we
// gave up our leadership when we became a client.
if (this->leader_available ())