[Merkaartor] Refactoring GPS/ directory
cbro at semperpax.com
Mon Sep 8 09:45:03 BST 2008
> 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
> I re-added the polling in the slot forwarding class via a timer (500ms).
Works fine, AFAIK and does not hurt CPU.
- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Merkaartor