vpthread.h
来自「otl简单包装实现类,对数据库进行操作的,简单易用.」· C头文件 代码 · 共 41 行
H
41 行
/*************************************************************************** vpthread.h - description ------------------- begin : 11.26 15:18:00 CST 2003 copyright : (C) 2003 by |LiuZhong| email : |zliu@foundermn.com| ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef VPTHREAD_H#define VPTHREAD_H#include <pthread.h>class VPThread{private: static void* RunThread(void* pArg); pthread_t m_Pid; bool m_bRunning;public: VPThread(); virtual ~VPThread(); virtual void Run(); virtual void Terminate(); bool IsTerminated(); void Start(); void Detach(); void Join();};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?