C++ Builder 参考手册 ➙ System::Classes ➙ TThread ➙ SetFreeOnTerminate
头文件:#include <System.Classes.hpp>
命名空间:System::Classes
类:TThread
访问权限:protected:
函数原型:
void __fastcall SetFreeOnTerminate(bool Value);
SetFreeOnTerminate 是 System::Classes::TThread 的成员函数,修改 FreeOnTerminate 属性会调用这个函数。
参数:
Value: true: 线程结束时自动销毁,false: 线程结束时不自动销毁。
返回值:
无。
- SetFreeOnTerminate 是线程内部调用的方法,程序可以通过读写 FreeOnTerminate 属性来实现;
- 请参考 FreeOnTerminate 属性的相关描述和例子程序。
相关:
- System::Classes::TThread::FreeOnTerminate
- System::Classes::TThread::Started
- System::Classes::TThread::Suspended
- System::Classes::TThread::Terminated
- System::Classes::TThread::Finished
- System::Classes::TThread::Execute
- System::Classes::TThread
- System::TObject
- VCL 类继承关系
C++ Builder 参考手册 ➙ System::Classes ➙ TThread ➙ SetFreeOnTerminate
网友评论