首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > connection/object pool. A program may require a IMAP connection po ol and LDAP c...

connection/object pool. A program may require a IMAP connection po ol and LDAP c...

  • 资源大小:170.19 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 数据结构

资 源 简 介

Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grows, and now there is a need for a pool of threads. So just take the IMAP connection pool and convert that to a pool of threads (Copy, paste, find, replace????). Need to make some changes to the pool implementation? Not a very easy task, since the code has been duplicated in many places. Re-inventing source code is not an intelligent approach in an object oriented environment which encourages re-usability. It seems to make more sense to implement a pool that can contain any arbitrary type rather than duplicating code. How does one do that? The answer is to use type parameterization, more commonly referred to as templates.-connection/object pool. A program may require a IMAP connection po ol and LDAP connection pool. One could easily im plemen

文 件 列 表

Generic_Pool_demo
Docs
GenericObject.h
Generic_Pool.htm
main.cpp
Mutex.h
MutexWin.h
ObjectHolder.h
Pool.exe
Pool.sln
Pool.vcproj
PoolMgr.h
Solution1.sln
VIP VIP
0.178655s