文件名称:Generic_Pool_demo
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 170kb
- 下载次数:
- 0次
- 提 供 者:
- zhu***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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 plement 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 ju st take the IMAP connection pool and convert tha t to a pool of threads (Copy, paste, find, replace). Need to make some changes to the pool i mplementation Not a very easy task, since the code has been duplicated in many place s. Re-inventing source code is not an intellige nt approach in an object oriented environment w hich encourages re-usability. It seems to make more sense to implement a pool that can contain a ny arbitrary type rather than duplicating code . How does one do that The answer is to use t
相关搜索: ldap
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Generic_Pool_demo
.................\Docs
.................\....\banner.htm
.................\....\CodeCommentReportError.htm
.................\....\commentreport.css
.................\....\gradleft.jpg
.................\....\gradtop.jpg
.................\....\minus.jpg
.................\....\plus.jpg
.................\....\Pool
.................\....\....\CWP0.HTM
.................\....\....\CWP10.HTM
.................\....\....\CWP11.HTM
.................\....\....\CWP12.HTM
.................\....\....\CWP13.HTM
.................\....\....\CWP14.HTM
.................\....\....\CWP15.HTM
.................\....\....\CWP16.HTM
.................\....\....\CWP17.HTM
.................\....\....\CWP18.HTM
.................\....\....\CWP19.HTM
.................\....\....\CWP2.HTM
.................\....\....\CWP20.HTM
.................\....\....\CWP21.HTM
.................\....\....\CWP22.HTM
.................\....\....\CWP23.HTM
.................\....\....\CWP24.HTM
.................\....\....\CWP25.HTM
.................\....\....\CWP26.HTM
.................\....\....\CWP27.HTM
.................\....\....\CWP28.HTM
.................\....\....\CWP29.HTM
.................\....\....\CWP3.HTM
.................\....\....\CWP30.HTM
.................\....\....\CWP31.HTM
.................\....\....\CWP32.HTM
.................\....\....\CWP33.HTM
.................\....\....\CWP34.HTM
.................\....\....\CWP35.HTM
.................\....\....\CWP36.HTM
.................\....\....\CWP37.HTM
.................\....\....\CWP38.HTM
.................\....\....\CWP39.HTM
.................\....\....\CWP4.HTM
.................\....\....\CWP40.HTM
.................\....\....\CWP41.HTM
.................\....\....\CWP42.HTM
.................\....\....\CWP43.HTM
.................\....\....\CWP44.HTM
.................\....\....\CWP45.HTM
.................\....\....\CWP46.HTM
.................\....\....\CWP47.HTM
.................\....\....\CWP48.HTM
.................\....\....\CWP49.HTM
.................\....\....\CWP5.HTM
.................\....\....\CWP50.HTM
.................\....\....\CWP51.HTM
.................\....\....\CWP52.HTM
.................\....\....\CWP53.HTM
.................\....\....\CWP54.HTM
.................\....\....\CWP55.HTM
.................\....\....\CWP56.HTM
.................\....\....\CWP57.HTM
.................\....\....\CWP58.HTM
.................\....\....\CWP59.HTM
.................\....\....\CWP6.HTM
.................\....\....\CWP60.HTM
.................\....\....\CWP61.HTM
.................\....\....\CWP62.HTM
.................\....\....\CWP63.HTM
.................\....\....\CWP64.HTM
.................\....\....\CWP65.HTM
.................\....\....\CWP66.HTM
.................\....\....\CWP7.HTM
.................\....\....\CWP8.HTM
.................\....\....\CWP9.HTM
.................\....\....\Pool.HTM
.................\....\Solution_Pool.HTM
.................\....\titletile.jpg
.................\....\vt.js
.................\GenericObject.h
.................\Generic_Pool.htm
.................\main.cpp
.................\Mutex.h
.................\MutexWin.h
.................\ObjectHolder.h
.................\Pool.exe
.................\Pool.sln
.................\Pool.vcproj
.................\PoolMgr.h
.................\Solution1.sln
.................\Docs
.................\....\banner.htm
.................\....\CodeCommentReportError.htm
.................\....\commentreport.css
.................\....\gradleft.jpg
.................\....\gradtop.jpg
.................\....\minus.jpg
.................\....\plus.jpg
.................\....\Pool
.................\....\....\CWP0.HTM
.................\....\....\CWP10.HTM
.................\....\....\CWP11.HTM
.................\....\....\CWP12.HTM
.................\....\....\CWP13.HTM
.................\....\....\CWP14.HTM
.................\....\....\CWP15.HTM
.................\....\....\CWP16.HTM
.................\....\....\CWP17.HTM
.................\....\....\CWP18.HTM
.................\....\....\CWP19.HTM
.................\....\....\CWP2.HTM
.................\....\....\CWP20.HTM
.................\....\....\CWP21.HTM
.................\....\....\CWP22.HTM
.................\....\....\CWP23.HTM
.................\....\....\CWP24.HTM
.................\....\....\CWP25.HTM
.................\....\....\CWP26.HTM
.................\....\....\CWP27.HTM
.................\....\....\CWP28.HTM
.................\....\....\CWP29.HTM
.................\....\....\CWP3.HTM
.................\....\....\CWP30.HTM
.................\....\....\CWP31.HTM
.................\....\....\CWP32.HTM
.................\....\....\CWP33.HTM
.................\....\....\CWP34.HTM
.................\....\....\CWP35.HTM
.................\....\....\CWP36.HTM
.................\....\....\CWP37.HTM
.................\....\....\CWP38.HTM
.................\....\....\CWP39.HTM
.................\....\....\CWP4.HTM
.................\....\....\CWP40.HTM
.................\....\....\CWP41.HTM
.................\....\....\CWP42.HTM
.................\....\....\CWP43.HTM
.................\....\....\CWP44.HTM
.................\....\....\CWP45.HTM
.................\....\....\CWP46.HTM
.................\....\....\CWP47.HTM
.................\....\....\CWP48.HTM
.................\....\....\CWP49.HTM
.................\....\....\CWP5.HTM
.................\....\....\CWP50.HTM
.................\....\....\CWP51.HTM
.................\....\....\CWP52.HTM
.................\....\....\CWP53.HTM
.................\....\....\CWP54.HTM
.................\....\....\CWP55.HTM
.................\....\....\CWP56.HTM
.................\....\....\CWP57.HTM
.................\....\....\CWP58.HTM
.................\....\....\CWP59.HTM
.................\....\....\CWP6.HTM
.................\....\....\CWP60.HTM
.................\....\....\CWP61.HTM
.................\....\....\CWP62.HTM
.................\....\....\CWP63.HTM
.................\....\....\CWP64.HTM
.................\....\....\CWP65.HTM
.................\....\....\CWP66.HTM
.................\....\....\CWP7.HTM
.................\....\....\CWP8.HTM
.................\....\....\CWP9.HTM
.................\....\....\Pool.HTM
.................\....\Solution_Pool.HTM
.................\....\titletile.jpg
.................\....\vt.js
.................\GenericObject.h
.................\Generic_Pool.htm
.................\main.cpp
.................\Mutex.h
.................\MutexWin.h
.................\ObjectHolder.h
.................\Pool.exe
.................\Pool.sln
.................\Pool.vcproj
.................\PoolMgr.h
.................\Solution1.sln