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...

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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

Reply via email to