>
> win_extserialport.cpp should launch another thread that does a
> (blocking) WaitCommEvent on the serial port and emits the signal. That
> is quickly getting messy though.


That would be the proper thing to do, but is a bit ridiculous, IMHO.

>
>
> Easier is to revert those changes (just that revision please) and
> add a sleep in the loop to make sure that the thread is not
> permanently hogging cpu. It is not as good, but will still help
> batterylife.
>
> I re-added the polling in the slot forwarding class via a timer (500ms).

Works fine, AFAIK and does not hurt CPU.

- Chris -
_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor

Reply via email to