diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-09-30 01:48:00 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-09-30 01:48:00 +0000 |
commit | ae2e7061b0c6c922d04ae0dc5ca813cc7c9194d6 (patch) | |
tree | 49076dd83d38bb55172871a828f3d99213249e95 /TAO/tao/IIOP_Endpoint.i | |
parent | 4aaba06d6dba65f9b07e77a977e4aaf388fcd62b (diff) | |
download | ATCD-ae2e7061b0c6c922d04ae0dc5ca813cc7c9194d6.tar.gz |
ChangeLogTag:Sat Sep 29 18:07:55 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/IIOP_Endpoint.i')
-rw-r--r-- | TAO/tao/IIOP_Endpoint.i | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/TAO/tao/IIOP_Endpoint.i b/TAO/tao/IIOP_Endpoint.i index 7e725c767e2..9f408752b4a 100644 --- a/TAO/tao/IIOP_Endpoint.i +++ b/TAO/tao/IIOP_Endpoint.i @@ -10,15 +10,14 @@ TAO_IIOP_Endpoint::object_addr (void) const // 2. The DNS setup may have changed dynamically. // ...etc.. - // We need to modify the object_addr_ in this method. Do so using a - // non-const copy of the <this> pointer. - TAO_IIOP_Endpoint *endpoint = - ACE_const_cast (TAO_IIOP_Endpoint *, - this); - // Double checked locking optimization. if (this->object_addr_.get_type () != AF_INET) { + // We need to modify the object_addr_ in this method. Do so + // using a non-const copy of the <this> pointer. + TAO_IIOP_Endpoint *endpoint = + ACE_const_cast (TAO_IIOP_Endpoint *, this); + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, endpoint->addr_lookup_lock_, |