]> rtime.felk.cvut.cz Git - orte.git/commit
ROBOT_DEMO: fix sync. problems in HokuyoView
authorMartin Vajnar <martin.vajnar@gmail.com>
Mon, 5 Aug 2013 19:26:29 +0000 (21:26 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 09:06:27 +0000 (11:06 +0200)
commit8fa95fd0cc6ac7e740cfbc85e8a38ce8843f513d
treebcf67c1dd63f6aedba9083f3aa2ec6adbc97604e
parent325b09047eafdbd2c1dfb65cca006d32a7599b27
ROBOT_DEMO: fix sync. problems in HokuyoView

Set new data only if the previous batch has been drawn and clone the newly
arrived data array. This prevents concurrent access problems when
the previous batch is being drawn on the UI thread and new data arrives
through ORTE's receive thread.
orte/Robot_Demo/src/org/ocera/orte/demo/HokuyoView.java
orte/Robot_Demo/src/org/ocera/orte/demo/MainActivity.java