[Lazarus] GTK2 threading

Michael Schnell mschnell at lumino.de
Wed Jan 23 09:44:35 CET 2013


On 01/22/2013 06:52 PM, Anton Kavalenka wrote:
>
>
> But GTK Widgetset uses pure Xlib calls for determining keyboard states.
> Xlib thread-safety is not initialized in GTK2 widgetset.

AFAIK: As the GUI and Event-queue related LCL classes (i.e. 
TApplication) are not thread save themselves (e.g. using global 
variables). It does not make sense to attach to the System's Widget set 
in a thread safe way.

To allow for multiple GUI threads a major update of the appropriate LCL 
functions would be necessary, so that multiple threads can create their 
own dedicated TApplication instances.

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130123/5490a29e/attachment-0003.html>


More information about the Lazarus mailing list