[Lazarus] Threads and Libraries (dll and so)
Michael Schnell
mschnell at lumino.de
Tue Feb 4 11:04:58 CET 2014
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
More information about the Lazarus
mailing list