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

Michael Van Canneyt michael at freepascal.org
Wed Oct 13 10:55:40 CEST 2010



On Wed, 13 Oct 2010, Graeme Geldenhuys wrote:

> Op 2010-10-13 09:27, Luca Olivetti het geskryf:
>>
>> They probably changed the implementation later on to avoid this, but old
>> farts like me still avoid to mix synchronize and waitfor.
>
> That just proves that my assumption was correct. Borland noticed all the
> deadlocks occur in spite of there efforts to document it (nice a clearly by
> the way). Thus they worked around the problem by using a different Windows
> API (MsgWaitForMultipleObjects), to allow for the developers expected usage.
>
> So it is just fitting that FPC changes its implementation under non-Windows
> platforms too. ;-)

You can all rejoice and merrily start coding: rev. 16145 contains a fix,
It's been confirmed by Graeme.

Michael.




More information about the Lazarus mailing list