[Lazarus] QueueAsyncCall() scheduling
Martin
lazarus at mfriebe.de
Sun Jul 18 16:12:25 CEST 2010
On 18/07/2010 15:09, Mark Morgan Lloyd wrote:
>
>>> 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...
>
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.
Martin
More information about the Lazarus
mailing list