[fpc-pascal] Use sleep in thread

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon Mar 2 11:40:56 CET 2015


Michael Schnell wrote:
> On 02/28/2015 08:20 PM, Mark Morgan Lloyd wrote:
>>
>> Looking at 
>> http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Initialization_and_Finalization 
>> there are dire warnings that  TThread.Create()  shouldn't be overridden.
> 
> ???
> 
> The Docs say "Normally you are required to override only 2 methods: the 
> Create constructor, and the Execute method. "

Yes, and the docs don't mark  Suspended  as deprecated, which is one of 
the reasons I was doing a general compare-and-contrast exercise.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list