![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常用封装类
文章平均质量分 52
低调的汉子
这个作者很懒,什么都没留下…
展开
-
c++ 单例模式
/** 单例模式类 */ class Csingle; Csingle* Csingle::m_pSingleInstence = NULL; class Csingle { public: static Csingle* GetInstance() { if (m_pSingleInstence == NULL) { m_pSingleInstence = new Cs原创 2016-07-30 14:23:06 · 230 阅读 · 0 评论 -
线程对象
#ifndef CTHREADEX_H #define CTHREADEX_H #include class CThreadEx { public: CThreadEx(); ~CThreadEx(); bool startThread(); //启动线程 bool suspendThread(); //挂起 bool stopThread();//结束 virtual b原创 2016-07-13 11:59:46 · 234 阅读 · 0 评论