📄 thread.cpp
字号:
#include <windows.h>
#include "Thread.h"
DWORD cThread::ThreadProc(LPVOID lpParameter)
{
return ((cThread *)lpParameter)->Run();
}
///////////////////////////////////////////////////////////////////////////////
// cThread
cThread::cThread():
mhThread(NULL),
mIDThread(0)
{
}
cThread::~cThread()
{
}
BOOL cThread::Create(DWORD dwCreationFlags, DWORD dwStackSize, LPSECURITY_ATTRIBUTES lpThreadAttributes)
{
if( NULL==mhThread )
{
// 2006斥 11岿 16老 16矫 47盒 荤公角 歹框.
// ce俊辑绰 _beginthreadex甫 瘤盔窍瘤 臼绰啊?
// 老窜 CreateThread肺 措眉 茄促. 弊矾唱 捞巴篮 c扼捞宏矾府甫 镜锭 巩力啊 惯积且 荐 档 乐促.
// 弊矾骨肺 瘤难 焊档废 茄促.
mhThread=::CreateThread(lpThreadAttributes, dwStackSize, cThread::ThreadProc, this, dwCreationFlags, &mIDThread);
if( mhThread )
return TRUE;
}
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -