[Lazarus] Serial communication??
Michael Schnell
mschnell at lumino.de
Wed Sep 29 12:56:28 CEST 2010
On 09/28/2010 09:12 PM, Felipe Monteiro de Carvalho wrote:
> By using a timeout. Timeout = 0 returns immediately, so you can use
> this to check periodicaly if data comes.
>
Polling never is nice: unnecessarily consuming CPU cycles and
introducing additional latency.
long timeout -> large latency, short timeout - large CPU overhead.
So IMHO using bocking communication in threads (such as AsyncPro
provides) is the way to go.
-Michael
More information about the Lazarus
mailing list