diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-16 01:43:11 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-16 01:43:11 +0000 |
commit | 8985600421601bd4409c254e43d138e7eeace12e (patch) | |
tree | 4dcfe5dd5063558a1720b62ce91092095ffd8f9e /ace/Strategies_T.h | |
parent | 214f9612d1e0cf52b2f0c0100982902d0d28236a (diff) | |
download | ATCD-8985600421601bd4409c254e43d138e7eeace12e.tar.gz |
ChangeLogTag:Thu Jul 15 20:23:39 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/Strategies_T.h')
-rw-r--r-- | ace/Strategies_T.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/ace/Strategies_T.h b/ace/Strategies_T.h index fdb2ad5ca96..b02ef9f0f73 100644 --- a/ace/Strategies_T.h +++ b/ace/Strategies_T.h @@ -649,17 +649,17 @@ public: ACE_Refcounted_Hash_Recyclable (const T &t, int refcount = 0, - ACE_Recyclable::State state = ACE_Recyclable::UNKNOWN); + ACE_Recyclable_State state = ACE_RECYCLABLE_UNKNOWN); // Constructor. virtual ~ACE_Refcounted_Hash_Recyclable (void); // Destructor int operator== (const ACE_Refcounted_Hash_Recyclable<T> &rhs) const; + int operator!= (const ACE_Refcounted_Hash_Recyclable<T> &rhs) const; // Compares two instances. - int operator== (const T &rhs) const; - // Compares two instances. + T &subject (); protected: u_long hash_i (void) const; @@ -747,6 +747,10 @@ public: virtual int cache (const void *recycling_act); // Add to cache. + virtual int state (const void *recycling_act, + ACE_Recyclable_State new_state); + // Change state to <new_state>. + virtual int mark_as_closed (const void *recycling_act); // Mark as closed. @@ -782,12 +786,20 @@ public: protected: + int find (REFCOUNTED_HASH_RECYCLABLE_ADDRESS &search_addr, + ACE_Hash_Map_Entry<ACE_Refcounted_Hash_Recyclable<ACE_PEER_CONNECTOR_ADDR>, SVC_HANDLER *> *&entry); + // Find an idle handle. + virtual int purge_i (const void *recycling_act); // Remove from cache (non-locking version). virtual int cache_i (const void *recycling_act); // Add to cache (non-locking version). + virtual int state_i (const void *recycling_act, + ACE_Recyclable_State new_state); + // Change state to <new_state> (non-locking version). + virtual int mark_as_closed_i (const void *recycling_act); // Mark as closed (non-locking version). |