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

Michael Schnell mschnell at lumino.de
Wed Oct 13 16:48:48 CEST 2010


  On 10/12/2010 10:54 PM, Adem wrote:
>  My hope/guess is that they may want to modify/extend it in time to 
> cover their specialized needs (if any); but, having a universal/common 
> code should benefit them/everybody too.
I don't suppose that it will run without any modification in the Widget 
Type code (e.g. as "procedure..message" would be hooked to the RTL code 
instead of the LCL code).

A decent modification would be deleting the Widget Types' own event 
queues and use the one in the RTL and merge the GUI messages (Windows) / 
GUI callbacks (Linux/MAC) into same.

A less perfect way would be to do the Widget Types' event queue object 
as a descendant of some virtual Object done in the RTL and hook it in 
instead of the RTL code.

Right now no common interface for the Widget Types' event queues seems 
to exist, and so they are not "hookable".

BTW.: as MSE would benefit from the RTL improvement, as well, Maybe 
Martin would be inclined to help here. He created the appropriate code 
do make it happen.

-Michael




More information about the Lazarus mailing list