- TThread::ExternalThread - C++ Bu
- TThread::FatalException - C++ Bu
- TThread::GetSystemTimes - C++ Bu
- TThread::ProcessorCount - C++ Bu
- TThread::SetReturnValue - C++ Bu
- TThread::~TThread - C++ Builder
- TThread::TThread - C++ Builder
- TThread::NameThreadForDebugging
- TThread::Suspended - C++ Builder
- TThread::Terminate - C++ Builder
C++ Builder 参考手册 ➙ TThread ➙ ExternalThread
头文件:#include <System.Classes.hpp>
命名空间:System::Classes
类:TThread
访问权限:public:
属性定义:
__property bool ExternalThread = { read = FExternalThread, nodefault };
System::Classes::TThread::ExternalThread 是 System::Classes::TThread 的属性,是否外部创建的线程。
- 正常创建的线程类 ExternalThread 属性都是 false,即都不是外部线程;
- 静态属性 CurrentThread 和 Current 在线程类外部获取当前线程,返回一个当前线程的实例,这个实例的 ExternalThread 属性是 true,这个实例会在线程销毁的时候跟着销毁;
- ExternalThread 属性为 true 说明这个对象是另外一个线程对象的一个实例,不需要对线程做任何的管理工作。
参考:
- System::Classes::TThread::CurrentThread
- System::Classes::TThread::Current
- System::Classes::TThread::CreateAnonymousThread
- System::Classes::TThread
- System::TObject
- VCL 类继承关系
C++ Builder 参考手册 ➙ TThread ➙ ExternalThread
网友评论