[fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64
Michael Van Canneyt
michael at freepascal.org
Sat Oct 16 11:44:13 CEST 2010
On Sat, 16 Oct 2010, Luca Olivetti wrote:
> Al 15/10/10 22:31, En/na Vinzent Höfler ha escrit:
>
>> - FreeOnTerminate should be gone, (meaning no way to actively call
>> TThread.Destroy from another thread, a thread gets destroyed
>> automatically when it leaves its execute method)
>
> I don't agree, the creator of the thread should be able to see what's
> happening to it (i.e. keeping a reference to the thread without risking a
> SIGSEV because the thread has terminated).
That's what the OnTerminate() event is for, that should definitely remain.
Michael.
More information about the fpc-pascal
mailing list