Skip to content

Conversation

@JakubVanek
Copy link
Contributor

These tests are intended for scenarios where multiple threads read from one DataChannelRereader (DCR) instance at the same time. Such a thing may happen easily for singletons, like Battery. The first DCR implementation contained a data race on the byteBuffer contents/limits. Both current versions should no longer be susceptible to this (DCR1 is synchronized, DCR2 uses thread-local buffers).

This was previously part of #775; that PR is now dedicated to DCR2 changes.

@jabrena jabrena merged commit 9c960cc into ev3dev-lang-java:sysfs_perf2 Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants