[Lazarus] Sending messages
zeljko at holobit.net
Thu Nov 24 12:46:08 CET 2011
On Thursday 24 of November 2011 10:12:25 Michael Schnell wrote:
> AFIK, in Windows, it is possible to create (or just use ? ) an Event
> Queue (aka "message loop") for worker threads. This is not supported by
> the LCL (nor the Delphi VCL) as the LCL and VCL code is done in a
> non-reenrant way (supposedly for performance purpose). So this
> Windows-supported feature can't be used. With non-Windows
> LCLWidgetTypes, the EventQueue is done "manually" in the appropriate
> WidgetType related files of the LCL. But here (of course) again only a
> single EventQueue (for the main thread) is supported. In theory you
> could create another TApplication object to create another Event queue,
> but for sure this will crash because of non-reentrancy issues.
No, I'm pretty sure that gtk2 and qt can have more than 1 event loop (event
queue). Both uses glib loop, and qt always start another event loop when eg.
shows dialogs or similar stuff.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus