Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run diff on background thread when calling Anvil.render() #141

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants