asterics / AsTeRICS

The Assistive Technology Rapid Integration & Construction Set
http://www.asterics.eu
Other
57 stars 27 forks source link

Improve Implementation of FS20 in order to be use only one Thread #182

Closed klues closed 6 years ago

klues commented 7 years ago

see comments of https://github.com/asterics/AsTeRICS-Ergo/issues/21#issuecomment-335922915

In PCSDevice.java https://github.com/asterics/AsTeRICS/blob/e21e2b553cab77121ee0c4e1e36338d2ee78bf74/ARE/components/actuator.fs20sender/src/main/java/eu/asterics/component/actuator/fS20Sender/PCSDevice.java#L107 it is possible that the hid-device is used by several threads at the same time. This should be avoided, because it can lead to crashes in native libs.

Solution: Change implementation in order to ensure the hid-device is only used by one thread at a time.

klues commented 6 years ago

fixed with https://github.com/asterics/AsTeRICS/pull/199