2012年9月19日

C++实现多线程安全的单体模式(Singleton)

摘要: 单体模式算是最简单的设计模式,不考虑多线程,我们可能会写出这样的代码:class Singleton{public: static Singleton* getInstance();protected: Sing... 阅读全文

posted @ 2012-09-19 22:55 gapofsky 阅读(116) 评论(0) 推荐(0)

导航