diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-30 06:52:10 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-30 06:52:10 +0000 |
commit | 674cbe19e688fe5139296320514c96c2ec14f658 (patch) | |
tree | c09e4d5d602a2027199825e055d6e27c99acf6f3 /ace/Strategies_T.h | |
parent | 3e14ff8ac10b468d0db9e3aeb911194d994a4f26 (diff) | |
download | ATCD-674cbe19e688fe5139296320514c96c2ec14f658.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Strategies_T.h')
-rw-r--r-- | ace/Strategies_T.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/ace/Strategies_T.h b/ace/Strategies_T.h index 6affd6c6dbe..a23cd067bc0 100644 --- a/ace/Strategies_T.h +++ b/ace/Strategies_T.h @@ -716,7 +716,7 @@ public: // Compares two hash values. private: - size_t hash_i (const ADDR_T &) const; + u_long hash_i (const ADDR_T &) const; // This is the method that actually performs the non-cached hash // computation. It should typically be specialized. @@ -744,13 +744,16 @@ public: virtual ~ACE_Refcounted_Hash_Recyclable (void); // Destructor - u_long hash (void) const; - // Computes and returns hash value. - int operator== (const ACE_Refcounted_Hash_Recyclable<T> &rhs) const; // Compares two instances. + int operator== (const T &rhs) const; + // Compares two instances. + protected: + u_long hash_i (void) const; + // Computes and returns hash value. + T t_; }; @@ -861,9 +864,7 @@ public: CONNECT_STRATEGY; // = Typedefs for managing the map - typedef ACE_Hash_Addr<ACE_PEER_CONNECTOR_ADDR> - HASH_ADDRESS; - typedef ACE_Refcounted_Hash_Recyclable<HASH_ADDRESS> + typedef ACE_Refcounted_Hash_Recyclable<ACE_PEER_CONNECTOR_ADDR> REFCOUNTED_HASH_RECYCLABLE_ADDRESS; typedef ACE_Hash_Map_Manager <REFCOUNTED_HASH_RECYCLABLE_ADDRESS, SVC_HANDLER *, ACE_Null_Mutex> CONNECTION_MAP; @@ -899,8 +900,7 @@ protected: int reuse_addr, int flags, int perms, - ACE_Hash_Addr<ACE_PEER_CONNECTOR_ADDR> &search_addr, - ACE_Hash_Map_Entry<ACE_Refcounted_Hash_Recyclable<ACE_Hash_Addr<ACE_PEER_CONNECTOR_ADDR> >, SVC_HANDLER *> *&entry, + ACE_Hash_Map_Entry<ACE_Refcounted_Hash_Recyclable<ACE_PEER_CONNECTOR_ADDR>, SVC_HANDLER *> *&entry, int &found); int find_or_create_svc_handler_i (SVC_HANDLER *&sh, @@ -910,8 +910,7 @@ protected: int reuse_addr, int flags, int perms, - ACE_Hash_Addr<ACE_PEER_CONNECTOR_ADDR> &search_addr, - ACE_Hash_Map_Entry<ACE_Refcounted_Hash_Recyclable<ACE_Hash_Addr<ACE_PEER_CONNECTOR_ADDR> >, SVC_HANDLER *> *&entry, + ACE_Hash_Map_Entry<ACE_Refcounted_Hash_Recyclable<ACE_PEER_CONNECTOR_ADDR>, SVC_HANDLER *> *&entry, int &found); CONNECTION_MAP connection_cache_; |