[Lazarus] GTK2 threading
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus