]> 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)
committerMartin Vajnar <martin.vajnar@gmail.com>
Mon, 5 Aug 2013 19:26:29 +0000 (21:26 +0200)
commit9c4431d90f2bdbb44063f1d48c270d89cf6dd0a4
treea424c0915f50aa9a44f986c112ff123304d6147a
parent181a51d8795afd82c689388791870606b6301125
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