[Lazarus] Threads and Libraries (dll and so)

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Feb 4 12:09:36 CET 2014


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

This may make sense with remote displays.


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

This is not a matter of X (Windows: GDI), but of the application GUI 
code and libraries.

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

Right, and the restriction to one widgetset resides in the Lazarus 
widgetset handling.

DoDi





More information about the Lazarus mailing list