📄 active.cpp
字号:
/**
@file
ActiveObject's implementation
*/
#include "Active.h"
using namespace Win;
ActiveObject::ActiveObject()
: _isDying (0),
// disable warning "'this' used before initialized"
#pragma warning(disable: 4355)
_thread (ThreadEntry, this)
#pragma warning(default: 4355)
{}
void ActiveObject::Kill()
{
_isDying++;
FlushThread();
_thread.WaitForDeath();
}
DWORD WINAPI ActiveObject::ThreadEntry(void* pArg)
{
ActiveObject *pActive= static_cast<ActiveObject *> (pArg);
pActive->InitThread();
pActive->Run();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -