[fpc-pascal] Does TThread.Execute terminate thread on exit?
tobiasgiesen at gmail.com
Sun Nov 1 17:56:03 CET 2015
Yes it will terminate and free (if FreeOnTerminate is true).
Please excuse the shortness of this mail which was sent from my mobile phone. If necessary, I will send more information later.
> On 01.11.2015, at 15:25, Bo Berglund <bo.berglund at gmail.com> wrote:
> I have seen that the Execute method must chect for Terminated in its
> loop and exit if Terminated is set to true.
> But I cannot find mention on what happens if the Execute method exits
> without Terminated having first been set.
> Does this cause the thread itself to terminate and free or what
> Bo Berglund
> Developer in Sweden
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal