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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy