<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/22/2013 06:52 PM, Anton Kavalenka
wrote:<br>
</div>
<blockquote cite="mid:50FED1DF.2060101@tut.by" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Liberation Sans"><br>
<br>
But GTK Widgetset uses pure Xlib calls for determining keyboard
states. <br>
Xlib thread-safety is not initialized in GTK2 widgetset.</font><br>
</blockquote>
<br>
<font face="Liberation Sans">AFAIK: As the GUI and Event-queue
related LCL classes (i.e. TApplication)</font> 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. <br>
<br>
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. <br>
<br>
-Michael<br>
</body>
</html>