📄 idlethread.cpp
字号:
#include "stdafx.h"
#include "Threads\IdleThread.h"
namespace Threads
{
IdleThread::~IdleThread()
{
this->Stop();
}
void IdleThread::Run()
{
SetThreadPriority(THREAD_PRIORITY_IDLE);
// This thread will go in a busy loop at the lowest possible priority
// consuming all free cpu power
while (!this->IsStopped())
{
}
}
} // namespace Threads
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -