[fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64
Luca Olivetti
luca at ventoso.org
Sat Oct 16 17:42:03 CEST 2010
Al 16/10/10 16:57, En/na Vinzent Höfler ha escrit:
>
> Well, the usual implementation of an externally called "Destroy" is
>
> - first a call to the Terminate method
> - then a WaitFor()
Nope, I avoid the WaitFor. I usually do a
while not FFinished do
CheckSynchronize(100);
(where FFinished is set when Execute ends).
Bye
--
Luca
More information about the fpc-pascal
mailing list