- #pragma once
- //数据单实例创建
- #include <boost/serialization/singleton.hpp>
- #include "CDBConnPool.h"
- //单件相关定义
- typedef boost::serialization::singleton<YADB::CDBConnPool> singleton_CDBConnPool;
- #define sDBConnPool singleton_CDBConnPool::get_mutable_instance()
- #define sDBConnPool_const singleton_CDBConnPool::get_const_instance()
|