Michael Schnell wrote:
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.

At that point why not bite the bullet and exploit GPU parallelism?

(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).

KDE and Qt are minor issues, far more significant is arbitrary restrictions that GTK imposes because they envisage some usage case that will break Gnome.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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

Reply via email to