thread.cpp

来自「16 relay output channels and 16 isolated」· C++ 代码 · 共 29 行

CPP
29
字号
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop

#include "Thread.h"
//---------------------------------------------------------------------------
//   Important: Methods and properties of objects in VCL can only be
//   used in a method called using Synchronize, for example:
//
//      Synchronize(UpdateCaption);
//
//   where UpdateCaption could look like:
//
//      void __fastcall MyThread::UpdateCaption()
//      {
//        Form1->Caption = "Updated in a thread";
//      }
//---------------------------------------------------------------------------
__fastcall MyThread::MyThread(bool CreateSuspended)
	: TThread(true)
{
}
//---------------------------------------------------------------------------
void __fastcall MyThread::Execute()
{
	Sleep(1000);
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?