[fpc-devel] TThread extensions

Michael Schnell mschnell at lumino.de
Fri Jun 27 12:29:42 CEST 2014


On 06/26/2014 03:20 PM, Michael Schnell wrote:
>
>
> P.S.: perhaps the project is not even doable (in a perfectly 
> compatible way) with the (Delphi compatible) implementation of 
> TThread.Queue. (I just would need to be able to feed an Event in the 
> Queue, but those means are "private" in TThread.) So maybe the holdoff 
> will be forever.
>
>
I checked the code of TThread.Queue and in fact it does not queue the 
call if TThread.Queue is executed from the main thread, but performs the 
call right away.

This supposedly is not compatible with how Application.QueueAsyncCall 
works in other WidgetTypes.

Unfortunately the svn-version of the rtl does not provide a means to 
prevent this (queer, Delphi compatible) behavior.

So for full compatibility we would need an enhancement in the fpc-rtl.

-Michael



More information about the fpc-devel mailing list