diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-21 03:04:42 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-21 03:04:42 +0000 |
commit | efe89a2a6f2c368c8813d77e555b670a71096778 (patch) | |
tree | 3627c7878af332586716ef9fc53f171ec1e010a4 | |
parent | 8d7fb3e65122e7fa5685cc9c322b47ddd6020fd7 (diff) | |
download | ATCD-conncache.tar.gz |
Added TAO_CONNECTION_CACHING_STRATEGY and TAO_PURGE_PERCENTconncache
-rw-r--r-- | TAO/tao/orbconf.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h index 74bd38dd287..ca844ef5e00 100644 --- a/TAO/tao/orbconf.h +++ b/TAO/tao/orbconf.h @@ -37,22 +37,6 @@ #define TAO_NULL_LOCK_REACTOR ACE_Select_Reactor_T< ACE_Select_Reactor_Token_T<ACE_Noop_Token> > #endif /* TAO_NULL_LOCK_REACTOR */ -// Users should override this stuff if they don't want to use the -// default ACE Socket wrappers. This makes it possible to change -// TAO's transport mechanism wholesale by making a few minor changes -// to the ACE config.h file. -#if !defined (TAO_SOCK_STREAM) -#define TAO_SOCK_STREAM ACE_SOCK_STREAM -#define TAO_SOCK_Stream ACE_SOCK_Stream -#endif /* TAO_SOCK_STREAM */ - -#if !defined (TAO_SOCK_ACCEPTOR) -#define TAO_SOCK_ACCEPTOR ACE_SOCK_ACCEPTOR -#endif /* TAO_SOCK_ACCEPTOR */ - -#if !defined (TAO_SOCK_CONNECTOR) -#define TAO_SOCK_CONNECTOR ACE_SOCK_CONNECTOR -#endif /* TAO_SOCK_CONNECTOR */ //#define POA_NO_TIMESTAMP // @@ -165,6 +149,15 @@ # define TAO_MAXIMUM_NATIVE_TYPE_SIZE 128 #endif /* TAO_MAXIMUM_NATIVE_TYPE_SIZE */ +// This deals with the startegies for connection caching. By default +// itis the Least Recently Used with the default purging percentage of 20%. +#if !defined (TAO_CONNECTION_CACHING_STRATEGY) +# define TAO_CONNECTION_CACHING_STRATEGY 0 //LRU +#endif /* TAO_CONNECTION_CACHING_STRATEGY */ +#if !defined (TAO_PURGE_PERCENT) +# define TAO_PURGE_PERCENT 20 +#endif /* TAO_PURGE_PERCENT */ + // This deals with platforms that support namespaces vs platforms that // don't. @@ MSVC's namespace implementation is somehow broken. // The following macros are required to deal with the most bizarre and insane |