diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-10-28 18:31:01 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-10-28 18:31:01 +0000 |
commit | cdb6fd66611283a0314ab23e08472d11dae4f0e4 (patch) | |
tree | fd6ae8c3db752254802dfaafd1543974a4741e47 /TAO/tao/Transport_Cache_Manager.h | |
parent | f984aa2bff444f381570d2f97ac9ba958926fb6b (diff) | |
download | ATCD-cdb6fd66611283a0314ab23e08472d11dae4f0e4.tar.gz |
ChangeLogTag:Tue Oct 28 12:02:47 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Transport_Cache_Manager.h')
-rw-r--r-- | TAO/tao/Transport_Cache_Manager.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/tao/Transport_Cache_Manager.h b/TAO/tao/Transport_Cache_Manager.h index 7effcdb6e24..a42b81ca750 100644 --- a/TAO/tao/Transport_Cache_Manager.h +++ b/TAO/tao/Transport_Cache_Manager.h @@ -10,20 +10,20 @@ */ //============================================================================= - #ifndef TAO_CONNECTION_CACHE_MANAGER_H #define TAO_CONNECTION_CACHE_MANAGER_H -#include /**/ "ace/pre.h" -#include "tao/Cache_Entries.h" +#include /**/ "ace/pre.h" +#include "ace/Null_Mutex.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) #define ACE_LACKS_PRAGMA_ONCE #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "ace/Hash_Map_Manager_T.h" -#include "ace/Thread_Mutex.h" -#include "ace/Null_Mutex.h" + +#include "tao/Cache_Entries.h" +#include "tao/orbconf.h" class ACE_Handle_Set; class TAO_Connection_Handler; @@ -54,18 +54,19 @@ typedef ACE_Unbounded_Set<TAO_Connection_Handler*> TAO_Connection_Handler_Set; class TAO_Export TAO_Transport_Cache_Manager { public: - // Some useful typedef's typedef ACE_Hash_Map_Manager_Ex <TAO_Cache_ExtId, TAO_Cache_IntId, ACE_Hash<TAO_Cache_ExtId>, ACE_Equal_To<TAO_Cache_ExtId>, - ACE_Null_Mutex> HASH_MAP; + ACE_Null_Mutex> + HASH_MAP; typedef HASH_MAP::iterator HASH_MAP_ITER; typedef ACE_Hash_Map_Entry <TAO_Cache_ExtId, - TAO_Cache_IntId> HASH_MAP_ENTRY; + TAO_Cache_IntId> + HASH_MAP_ENTRY; typedef TAO_Condition<TAO_SYNCH_MUTEX> CONDITION; @@ -127,7 +128,6 @@ public: HASH_MAP &map (void); private: - /// Associate <ext_id> with <int_id>. Grabs the lock and calls the /// implementation function bind_i. int bind (TAO_Cache_ExtId &ext_id, @@ -171,7 +171,6 @@ private: void mark_invalid_i (HASH_MAP_ENTRY *&); private: - /** * This is called by the bind () call when a bind fails with a * available entry. When a new connection is created in TAO with an @@ -214,8 +213,8 @@ private: /// Is the wakeup useful todo some work? int is_wakeup_useful (TAO_Cache_ExtId &extid); -private: +private: /// The percentage of the cache to purge at one time int percent_; @@ -249,4 +248,5 @@ private: #endif /* __ACE_INLINE__ */ #include /**/ "ace/post.h" + #endif /*TAO_CONNECTION_CACHE_MANAGER_H*/ |