CDBSingletonDefine.h 349 B

1234567891011
  1. #pragma once
  2. //数据单实例创建
  3. #include <boost/serialization/singleton.hpp>
  4. #include "CDBConnPool.h"
  5. //单件相关定义
  6. typedef boost::serialization::singleton<YADB::CDBConnPool> singleton_CDBConnPool;
  7. #define sDBConnPool singleton_CDBConnPool::get_mutable_instance()
  8. #define sDBConnPool_const singleton_CDBConnPool::get_const_instance()