summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2003-02-20 18:37:58 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2003-02-20 18:37:58 +0000
commitafa9b9d18bf50a36f5168c3803ff61b48d0cf8fd (patch)
tree3ed185f8b2f8ef02428e61f35a91573bb07b4ea7 /ace
parent3f3bdcecda4cb6fecc045a5d3d02684e6aeebf1d (diff)
downloadATCD-afa9b9d18bf50a36f5168c3803ff61b48d0cf8fd.tar.gz
ChangeLogTag:Thu Feb 20 10:35:15 2003 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/Strategies_T.cpp38
-rw-r--r--ace/Strategies_T.h11
2 files changed, 24 insertions, 25 deletions
diff --git a/ace/Strategies_T.cpp b/ace/Strategies_T.cpp
index 28d15a4faf0..61226c876a3 100644
--- a/ace/Strategies_T.cpp
+++ b/ace/Strategies_T.cpp
@@ -469,8 +469,8 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::~ACE_Cach
this->recycling_strategy_ = 0;
// Close down all cached service handlers.
- CONNECTION_MAP::ENTRY *entry;
- for (CONNECTION_MAP::ITERATOR iterator (connection_map_);
+ CONNECTION_MAP_ENTRY *entry;
+ for (CONNECTION_MAP_ITERATOR iterator (connection_map_);
iterator.next (entry);
iterator.advance ())
{
@@ -558,7 +558,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::check_hin
int reuse_addr,
int flags,
int perms,
- CONNECTION_MAP::ENTRY *&entry,
+ CONNECTION_MAP_ENTRY *&entry,
int &found)
{
ACE_UNUSED_ARG (remote_addr);
@@ -571,7 +571,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::check_hin
found = 0;
// Get the recycling act for the svc_handler
- CONNECTION_MAP::ENTRY *possible_entry = (CONNECTION_MAP::ENTRY *) sh->recycling_act ();
+ CONNECTION_MAP_ENTRY *possible_entry = (CONNECTION_MAP_ENTRY *) sh->recycling_act ();
// Check to see if the hint svc_handler has been closed down
if (possible_entry->ext_id_.recycle_state () == ACE_RECYCLABLE_CLOSED)
@@ -633,7 +633,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::find_or_c
int reuse_addr,
int flags,
int perms,
- CONNECTION_MAP::ENTRY *&entry,
+ CONNECTION_MAP_ENTRY *&entry,
int &found)
{
// Explicit type conversion
@@ -886,7 +886,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::connect_s
int perms,
int& found)
{
- CONNECTION_MAP::ENTRY *entry = 0;
+ CONNECTION_MAP_ENTRY *entry = 0;
// Check if the user passed a hint svc_handler
if (sh != 0)
@@ -945,8 +945,8 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int
ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::cache_i (const void *recycling_act)
{
// The wonders and perils of ACT
- CONNECTION_MAP::ENTRY *entry =
- ACE_static_cast (CONNECTION_MAP::ENTRY *, recycling_act);
+ CONNECTION_MAP_ENTRY *entry =
+ ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act);
// Mark the <svc_handler> in the cache as not being <in_use>.
// Therefore recyclable is IDLE.
@@ -973,8 +973,8 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::recycle_s
ACE_Recyclable_State new_state)
{
// The wonders and perils of ACT
- CONNECTION_MAP::ENTRY *entry =
- ACE_static_cast (CONNECTION_MAP::ENTRY *, recycling_act);
+ CONNECTION_MAP_ENTRY *entry =
+ ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act);
// Mark the <svc_handler> in the cache as not being <in_use>.
// Therefore recyclable is IDLE.
@@ -999,8 +999,8 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ACE_Recyclable_St
ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::recycle_state_i (const void *recycling_act) const
{
// The wonders and perils of ACT
- CONNECTION_MAP::ENTRY *entry =
- ACE_static_cast (CONNECTION_MAP::ENTRY *, recycling_act);
+ CONNECTION_MAP_ENTRY *entry =
+ ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act);
// Mark the <svc_handler> in the cache as not being <in_use>.
// Therefore recyclable is IDLE.
@@ -1021,8 +1021,8 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int
ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::purge_i (const void *recycling_act)
{
// The wonders and perils of ACT
- CONNECTION_MAP::ENTRY *entry =
- ACE_static_cast (CONNECTION_MAP::ENTRY *, recycling_act);
+ CONNECTION_MAP_ENTRY *entry =
+ ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act);
return this->connection_map_.unbind (entry);
}
@@ -1041,8 +1041,8 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int
ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::mark_as_closed_i (const void *recycling_act)
{
// The wonders and perils of ACT
- CONNECTION_MAP::ENTRY *entry =
- ACE_static_cast (CONNECTION_MAP::ENTRY *, recycling_act);
+ CONNECTION_MAP_ENTRY *entry =
+ ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act);
// Mark the <svc_handler> in the cache as CLOSED.
entry->ext_id_.recycle_state (ACE_RECYCLABLE_CLOSED);
@@ -1072,8 +1072,8 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::cleanup_h
*act_holder = 0;
// The wonders and perils of ACT
- CONNECTION_MAP::ENTRY *entry =
- ACE_static_cast, CONNECTION_MAP::ENTRY *, recycling_act);
+ CONNECTION_MAP_ENTRY *entry =
+ ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act);
// Decrement the refcount on the <svc_handler>.
int refcount = entry->ext_id_.decrement ();
@@ -1112,7 +1112,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::concurren
template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int
ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::find (
REFCOUNTED_HASH_RECYCLABLE_ADDRESS &search_addr,
- CONNECTION_MAP::ENTRY *&entry)
+ CONNECTION_MAP_ENTRY *&entry)
{
typedef ACE_Hash_Map_Bucket_Iterator<REFCOUNTED_HASH_RECYCLABLE_ADDRESS,
SVC_HANDLER *,
diff --git a/ace/Strategies_T.h b/ace/Strategies_T.h
index dcb9289b0d3..c9dd3e102b7 100644
--- a/ace/Strategies_T.h
+++ b/ace/Strategies_T.h
@@ -943,9 +943,8 @@ public:
typedef ACE_Hash_Map_Manager_Ex<REFCOUNTED_HASH_RECYCLABLE_ADDRESS, SVC_HANDLER *, ACE_Hash<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>, ACE_Equal_To<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>, ACE_Null_Mutex>
CONNECTION_MAP;
- // (Two) Deprecated and redundant typedefs
- typedef CONNECTION_MAP::ITERATOR CONNECTION_MAP_ITERATOR;
- typedef CONNECTION_MAP::ENTRY CONNECTION_MAP_ENTRY;
+ typedef ACE_TYPENAME CONNECTION_MAP::ITERATOR CONNECTION_MAP_ITERATOR;
+ typedef ACE_TYPENAME CONNECTION_MAP::ENTRY CONNECTION_MAP_ENTRY;
typedef ACE_Reverse_Lock<MUTEX> REVERSE_MUTEX;
@@ -967,7 +966,7 @@ protected:
/// Find an idle handle.
int find (REFCOUNTED_HASH_RECYCLABLE_ADDRESS &search_addr,
- CONNECTION_MAP::ENTRY *&entry);
+ CONNECTION_MAP_ENTRY *&entry);
/// Remove from cache (non-locking version).
virtual int purge_i (const void *recycling_act);
@@ -994,7 +993,7 @@ protected:
int reuse_addr,
int flags,
int perms,
- CONNECTION_MAP::ENTRY *&entry,
+ CONNECTION_MAP_ENTRY *&entry,
int &found);
int find_or_create_svc_handler_i (SVC_HANDLER *&sh,
@@ -1004,7 +1003,7 @@ protected:
int reuse_addr,
int flags,
int perms,
- CONNECTION_MAP::ENTRY *&entry,
+ CONNECTION_MAP_ENTRY *&entry,
int &found);
virtual int connect_svc_handler_i (