标签:proc resume executor pes highlight too 封装 sum suspend
Thread.h
Thread.cpp
用法:
#include "Thread.h"
#include "ThreadPoolExecutor.h"
class R : public Runnable
{
public:
~R()
{
printf("~R/n");
}
void Run()
{
printf("Hello World/n");
}
};
int _tmain(int argc, _TCHAR* argv[])
{
R r;
CThread * t = NULL;
t = new CThread(&r);
t->Start();
t->Join();
getchar();
}
http://blog.csdn.net/huyiyang2010/article/details/5801597
一个Windows C++的线程类实现(封装API,形成一个类,但不完善。其实可以学习一下Delphi的TThread的写法)
标签:proc resume executor pes highlight too 封装 sum suspend
原文地址:http://www.cnblogs.com/findumars/p/7378881.html