System.Threading.TThreadPool.TBaseWorkerThread.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TBaseWorkerThread();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | System.Threading.pas System.Threading.hpp |
System.Threading | TBaseWorkerThread |
Description
Destroys the thread object and releases the memory allocated to it.
Do not call Destroy directly. Instead, use Free to destroy a thread when FreeOnTerminate is False
. You can alternatively use SafeTerminate.
Destroy signals the thread to terminate and then waits for the thread to return before calling the inherited Destroy method.