diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-03-04 09:45:00 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-03-04 09:45:00 +0000 |
commit | 10dc924f7aef2797a1fd82938d36423101a1158f (patch) | |
tree | a306a7bc34dff3b53a6e561a8a56c330f3d9c05c /TAO/tao/Stub.inl | |
parent | df8f21a5e3f43c8c04580159427cec0dfd136933 (diff) | |
download | ATCD-10dc924f7aef2797a1fd82938d36423101a1158f.tar.gz |
Fri Mar 4 09:38:08 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl>
* orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h:
* orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
Reverted changes related to Stub.*, these changes break the ImR
example
* tao/Stub.h:
* tao/Stub.inl:
* tao/Stub.cpp:
Reverted, these changes break the ImR example
* tests/Client_Leaks/README:
* tests/Client_Leaks/child.cpp:
* tests/Client_Leaks/server.cpp:
Initialize pointers to 0
Diffstat (limited to 'TAO/tao/Stub.inl')
-rw-r--r-- | TAO/tao/Stub.inl | 44 |
1 files changed, 15 insertions, 29 deletions
diff --git a/TAO/tao/Stub.inl b/TAO/tao/Stub.inl index 1a756d12e57..a0ecaed898c 100644 --- a/TAO/tao/Stub.inl +++ b/TAO/tao/Stub.inl @@ -1,17 +1,11 @@ // -*- C++ -*- +// // $Id$ #include "tao/ORB_Core.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL -ACE_INLINE -TAO_SYNCH_MUTEX& -TAO_Stub::profile_lock () const -{ - return this->profile_lock_; -} - ACE_INLINE void TAO_Stub::reset_base (void) { @@ -22,6 +16,12 @@ TAO_Stub::reset_base (void) } +ACE_INLINE ACE_Lock* +TAO_Stub::profile_lock (void) const +{ + return this->profile_lock_ptr_; +} + ACE_INLINE void TAO_Stub::reset_forward (void) { @@ -53,9 +53,9 @@ TAO_Stub::reset_profiles_i (void) ACE_INLINE void TAO_Stub::reset_profiles (void) { - ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX, + ACE_MT (ACE_GUARD (ACE_Lock, guard, - this->profile_lock_)); + *this->profile_lock_ptr_)); this->reset_profiles_i (); } @@ -156,9 +156,9 @@ TAO_Stub::next_profile_i (void) ACE_INLINE TAO_Profile * TAO_Stub::next_profile (void) { - ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (ACE_Lock, guard, - this->profile_lock_, + *this->profile_lock_ptr_, 0)); return this->next_profile_i (); } @@ -184,9 +184,9 @@ TAO_Stub::valid_profile (void) const ACE_INLINE TAO_Profile * TAO_Stub::base_profiles (const TAO_MProfile &mprofiles) { - ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (ACE_Lock, guard, - this->profile_lock_, + *this->profile_lock_ptr_, 0)); // first reset things so we start from scratch! @@ -204,9 +204,9 @@ TAO_Stub::base_profiles (const TAO_MProfile &mprofiles) ACE_INLINE CORBA::Boolean TAO_Stub::next_profile_retry (void) { - ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, + ACE_MT (ACE_GUARD_RETURN (ACE_Lock, guard, - this->profile_lock_, + *this->profile_lock_ptr_, 0)); if (this->profile_success_ && this->forward_profiles_) @@ -347,20 +347,6 @@ bool TAO_Stub::forwarded_on_exception () const return forwarded_on_exception_.value (); } -ACE_INLINE -void -TAO_Stub::_incr_refcnt (void) -{ - ++this->refcount_; -} - -ACE_INLINE -void -TAO_Stub::_decr_refcnt (void) -{ - if (--this->refcount_ == 0) - delete this; -} // --------------------------------------------------------------- |