[Lazarus] TThread.WaitFor blocks the main event loop under Linux

Michael Van Canneyt michael at freepascal.org
Tue Oct 12 14:38:45 CEST 2010



On Tue, 12 Oct 2010, Graeme Geldenhuys wrote:

>
>> I will see about changing the specs.
>
> I wouldn't hold by breath, that's why I simply opted to implemented a new
> base class (TThread descendant) and implemented a new WaitFor() in there.
> At least now it works as expected on all the platforms I use.
>
> But unfortunately many other FPC developers will first have to experience
> the problems, then have to jump through the same hoops I did, to get their
> applications working.
>
> Weren't you one of those that said a little while ago that TThread is
> ultimately flawed anyway... so maybe a new implementation of WaitFor (and a
> new definition of what it does) is a tiny step in the right direction.

No need to get desperate; I already discussed it, and we'll change the
implementation as you propose. I'll do it personally.

Michael.




More information about the Lazarus mailing list