Executes the thread when the thread is created with CreateSuspended set to false.
procedure AfterConstruction; override;
virtual __fastcall AfterConstruction();
AfterConstruction launches the Execute method when the thread is not created in a suspended state. By calling Execute from the AfterConstruction method rather than the constructor, TThread avoids a race condition where the thread may free itself after Execute finishes but before the main thread calls AfterConstruction.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!