Author: wyoung
Date: Wed Mar 19 14:42:29 2008
New Revision: 2253
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2253&view=rev
Log:
Added ConnectionPool::size(), so a subclass can find the current pool
size and thus make decisions about creating more connections.
Modified:
trunk/lib/cpool.h
Modified: trunk/lib/cpool.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/cpool.h?rev=2253&r1=2252&r2=2253&view=diff
==============================================================================
--- trunk/lib/cpool.h (original)
+++ trunk/lib/cpool.h Wed Mar 19 14:42:29 2008
@@ -153,6 +153,9 @@
/// due to lack of use
virtual unsigned int max_idle_time() = 0;
+ /// \brief Returns the current size of the internal connection pool.
+ size_t size() const { return pool_.size(); }
+
private:
//// Internal types
struct ConnectionInfo {
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits