On 18/07/2010 17:04, Mark Morgan Lloyd wrote:
Martin wrote:
You did see my mail, that this was changed in Revision 25698?
So you can now, use QueueAsyncCall to *queue* several events, for
several comms, and they will be executed first-in, first-out.
Yes, I did. And if I understand things correctly each will be executed
to completion, first in first out, so it's not very much help for
something that needs to loop.
Well each called function/procedure must voluntary return anyway (if you
do not use threads). So if a method returns, it just adds itself to the
end of the list again => and that way you keep looping.
I've done exactly that myself (but with only one method), instead of
ProcessMessages, the method reschedules itself.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus