Michael Van Canneyt schrieb:
On Sun, 9 Oct 2011, Hans-Peter Diettrich wrote:
Mattias Gaertner schrieb:
On Sun, 09 Oct 2011 10:49:31 +0200
Hans-Peter Diettrich <[email protected]> wrote:
[...]
The LCL is not reentrant.
Most LCL code is reentrant.
Only within the context of an single thread.
This was acceptable on traditional single-CPU/core machines, but
nowadays non-visual components, and also parts of a GUI, should be
manageable in different (dedicated) threads.
It's not so on Unix. X-Windows is definitely not thread-safe.
I also have not seen any claims from Microsoft that the GDI controls are
thread-safe,
True, widgetsets typically are not threadsafe, that's not the problem.
Remember an recent thread, where e.g. a progress bar could be attached
to and served by an thread, independently from the main application GUI.
The same for data modules...
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus