-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[lgwebos] Update the thing configuration only if the key is different #7302
Conversation
Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
Travis tests were successfulHey @lolodomo, |
} | ||
|
||
@Override | ||
public void storeProperties(Map<String, String> properties) { | ||
public synchronized void storeProperties(Map<String, String> properties) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why synchronized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the case with the current code but with another of my changes, you could have different threads calling storeProperties at the same time.
By the way, I see that there is an object synchronizetion inside updateProperties and updateConfiguration so this is very probably useless to add one at the binding level.
Signed-off-by: Laurent Garnier <[email protected]>
Travis tests were successfulHey @lolodomo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Hans-Reiner Hoffmann <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Eugen Freiter <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: CSchlipp <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
…openhab#7302) * [lgwebos] Update the thing configuration only if the key is different Avoid concurrent edit of thing configuration/properties Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Laurent Garnier [email protected]