1 #ifndef BZS_DB_PROTOCOL_TDAP_CLIENT_CONNECTIONPOOL_H
2 #define BZS_DB_PROTOCOL_TDAP_CLIENT_CONNECTIONPOOL_H
21 #if HAVE_RB_THREAD_CALL_WITHOUT_GVL || HAVE_RB_THREAD_BLOCKING_REGION
22 #include <build/swig/ruby/threadBlockRegionWrapper.h>
25 #include <bzs/db/protocol/tdap/client/databaseManager.h>
26 #define BOOST_THREAD_USE_LIB
27 #include <boost/thread/thread.hpp>
28 #include <boost/thread/condition.hpp>
57 std::vector<Database_Ptr> m_dbs;
58 mutable boost::mutex m_mutex;
59 mutable boost::mutex m_mutex2;
60 mutable boost::condition m_busy;
63 WIN_TPOOL_SHUTDOWN_PTR m_shutdownFunc;
73 bool reset(
int waitSec = 5);
83 #ifdef USE_DBM_CONNECTION_POOL
86 #ifdef USE_DB_CONNECTION_POOL
90 "Please define the USE_DBM_CONNECTION_POOL when you need a connection pool";
97 extern stdCconnectionPool
cpool;
105 #endif // BZS_DB_PROTOCOL_TDAP_CLIENT_CONNECTIONPOOL_H
connectionPool< database_ptr > stdDbCconnectionPool
Definition: connectionPool.h:77
void setMaxConnections(int n)
connectionPool(int maxConnections=0)
int maxConnections() const
void reserve(size_t size, const connectParams ¶m)
void releaseConnection(stdDbmCconnectionPool *pool)
Definition: connectionPool.h:55
connectionPool< dbmanager_ptr > stdDbmCconnectionPool
Definition: connectionPool.h:78
bool reset(int waitSec=5)
short __STDCALL dllUnloadCallbackFunc()
データベースへの接続文字列生成ヘルパークラス
Definition: trdboostapi.h:72