[Lazarus] QueueAsyncCall() scheduling

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Sun Jul 18 16:09:03 CEST 2010


waldo kitty wrote:

> hunh? i thought a queue was an orderly format already... just like a 
> stack... like getting in the queue to get on the metro or to enter the 
> stadium to see your favorite band or to even buy lunch ;)
> 
> i must admit that i don't see the apparent difference :?

So I take it you'd be happy if the last person to join the queue was 
always the first to be served, possibly taking the place of somebody 
currently /being/ served. Whatever, that aspect is apparently being changed.

>> 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?
> 
> i haven't, yet :P

I'm planning a crude hack, hopefully just a list of TDataEvent with 
control being distributed by a shim in a single async call procedure. 
However I've got some system management work that's intruding...

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

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




More information about the Lazarus mailing list