Skip to content

Conversation

westgoten
Copy link

Solve issue #140

…ead;

Access to Mount instances from mounts list still is synchronous;
Any View.invalidate() method will be called on UI Thread.
@westgoten westgoten closed this Nov 12, 2019
@westgoten westgoten reopened this Nov 12, 2019
…ounting view

while there are rendering tasks running on singleThreadExecutor.
Set<Mount> set = new HashSet<>(mounts.values());
for (Mount m : set) {
render(m);
synchronized (mounts) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this synchronized is excessive since mounts are already use synchronizedMap

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