On 08/10/2012 02:38 PM, [email protected] wrote:
while not fStopExecution do
begin
CheckSynchronize;
inc(i);
end;
This results in 100 % CPU (in a single CPU system) so not a very good
idea IMHO. (Even the timer thread is crippled by the main thread.)
If you can live with some latency I would do something like:
while not fStopExecution do
begin
CheckSynchronize;
sleep(Max_Latancy);
end;
-Michael
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus