On 08/19/2013 01:47 PM, Michael Van Canneyt wrote:
YOU DO NOT NEED TO DO THIS.
Just implement the loop and let it call CheckSynchronize at regular
intervals.
All the rest will be done for you.
Did you ever do embedded software ?
The result of the event in the main queue is not having something
displayed to a human, but may be a command to the attached "machine",
which might be really fast.
Thus regular polling is an absolute no-go here.
Doing the polling "slow" results in huge latency regarding the events.
Doing the polling "fast" results in a huge processor overhead and thus
in a huge overhead regarding anything else that the CPU is supposed to do.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel