--- parser3/src/include/pa_sql_driver_manager.h 2001/05/17 12:51:05 1.5 +++ parser3/src/include/pa_sql_driver_manager.h 2001/05/17 18:26:22 1.7 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_sql_driver_manager.h,v 1.5 2001/05/17 12:51:05 parser Exp $ + $Id: pa_sql_driver_manager.h,v 1.7 2001/05/17 18:26:22 parser Exp $ global sql driver manager, must be thread-safe @@ -31,7 +31,8 @@ public: SQL_Driver_manager(Pool& pool) : Pooled(pool), driver_cache(pool), - connection_cache(pool) { + connection_cache(pool), + prev_expiration_pass_time(0) { } /** @@ -50,11 +51,14 @@ private: // connection cache SQL_Connection *get_connection_from_cache(const String& url); void put_connection_to_cache(const String& url, SQL_Connection& connection); + void maybe_expire_connection_cache(); +private: + time_t prev_expiration_pass_time; private: // for SQL_Connection /// caches connection - void close_connection(const String& url, SQL_Connection& connection, Pool& pool); + void close_connection(const String& url, SQL_Connection& connection); private: