[Lazarus] TThread.WaitFor blocks the main event loop under Linux
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed Oct 13 10:17:05 CEST 2010
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. ;-)
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net:8080/fpgui/
More information about the Lazarus
mailing list