I stumbled over this:

http://tronche.com/gui/x/xlib/display/XInitThreads.html

So Xlib is thread aware and they seem to suggest that it dopes make sense to create multiple X sessions (i.e. one per thread) in a single program.

(And I learned that in fact XInitThreads() can be called in Lazarus projects. -> http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-January/078799.html )

So in fact X does support multiple "!GUIs" (e.g. one per thread) in a multithreadded project.

Of course it might be that QT (or KDE) impose additional restrictions (though I still suppose that this can be handles somehow).

-Michael

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to