On 17/07/2010 15:50, Mark Morgan Lloyd wrote:
Martin wrote:
On 17/07/2010 13:36, Mark Morgan Lloyd wrote:
I note (now :-) that QueueAsyncCall() works on a strictly LIFO
basis, i.e. it's really a stack rather than a queue.
Has anybody ever built a simple round-robin scheduler based on this,
for example to handle low-speed comms on an indeterminate number of
serial ports?
Which revision of lazarus? IIRC it was very recently changed
(corrected) to FIFO.
0.9.28.3. I saw the discussion from earlier in the year, but I was
specifically considering code that could handle several serial ports
pseudo-concurrently while being able to display messages etc. using
visual controls. Obviously I could go for a full-blooded multithreaded
solution, but async calls work very well for one port at a time...
Maybe look at trunk, I don't know if that ever went into any branch.
Revision: 25698
Date: 16:29:53, 27 May 2010
Message: Change ASyncQueue to run in forward order (first in / first out)
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus