[fpc-pascal] lnet for TCP daemon
Sven Barth
pascaldragon at googlemail.com
Mon Sep 16 14:03:22 CEST 2013
Am 16.09.2013 13:38, schrieb Michael Schnell:
>> there is no LCL dependence in theory, but other eventloop systems
>> might assume they themselves implement the blocking part. (e.g. to
>> wake up because of OS messages) Services, console network server
>> implementations etc probably already do that both on Delphi and Lazarus.
>
> In fact the LCL seems to rely on the "It blocks for a maximum time"
> (as you said).
>
> While this might be "good enough" for GUI events, there might be
> instances where we either would want either (1) a faster reaction
> (than the said "maximum time") on events that are not to be pushed
> through the RTL event queue or (2) avoid the processor overhead that
> is imposed by the main thread leaving the block after the "maximum time".
>
> Regarding (2), I suppose it would be just nice to be able to define
> this time (I need to check the sources or the docs to find out).
>
CheckSynchronize has a timeout parameter:
http://www.freepascal.org/docs-html/rtl/classes/checksynchronize.html
Regards,
Sven
More information about the fpc-pascal
mailing list