On 20/04/11 15:46, zeljko wrote:
On Wednesday 20 of April 2011 16:31:59 Henry Vermaak wrote:
On 20/04/11 15:26, Michael Schnell wrote:
On 04/20/2011 04:05 PM, Henry Vermaak wrote:
PostMessage does wake up the main thread (when you compile your
project with -dusecthreads). And I use QueueAsyncCall with a manual
wakeup, which works well for me on win32 and gtk2. I use svn head, by
the way.

You are not _supposed_ to do that. QueuAsyncCall _should_ work for
itself (instantly and without doing polling ). So this is a work around
and not a reliable consideration.

Huh, what polling?  I know this is not ideal, that's why there is a bug
report.  All QueueAsyncCall needs to do is to wake up the main thread
after it has queued the function.  There is nothing "broken in the
infrastructure" as you keep saying, or perhaps you'd like to point us to
some specific code you find problematic to explain your statements?


Have you tried to add WakeUpMainThread in QueueAsyncCall() and test it with
all ws ? What happens ?

Hehe, we're saying the same thing, but talking past each other. I commented exactly this (with a patch) on the bug tracker, it seems to work for gtk2, can you test with qt?

Henry

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to