From 05079dfe47f146a7a4b19ace9dca5a769532a899 Mon Sep 17 00:00:00 2001 From: fredk Date: Fri, 26 Feb 1999 23:37:32 +0000 Subject: *** empty log message *** --- TAO/tao/Stub.i | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'TAO/tao/Stub.i') diff --git a/TAO/tao/Stub.i b/TAO/tao/Stub.i index bc3392e14b4..5b4110f31f4 100644 --- a/TAO/tao/Stub.i +++ b/TAO/tao/Stub.i @@ -259,3 +259,29 @@ STUB_Object::add_forward_profiles (TAO_MProfile *mprofiles) forward_profiles_->rewind (); } + +ACE_INLINE +CORBA::Boolean +STUB_Object::next_profile_retry (void) +{ + ACE_MT (ACE_GUARD_RETURN (ACE_Lock, + guard, + *this->profile_lock_ptr_, + 0)); + + if (profile_success_ && forward_profiles_) + { + reset_profiles_i (); + return 1; + } + else if (next_profile_i ()) + { + return 1; + } + else + { + reset_profiles_i (); + return 0; + } +} + -- cgit v1.2.1