GitHub user ahgittin opened a pull request:
https://github.com/apache/brooklyn-server/pull/860
improve locking for sensor values
fixes https://issues.apache.org/jira/browse/BROOKLYN-544
introducing a public Lock for writes and callers, and the weaker uglier
monitor for very short internal synchronized blocks.
also adds a Locks convenience class for running code with a lock.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ahgittin/brooklyn-server
fix-attributes-value-deadlock
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-server/pull/860.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #860
----
commit 22178b6587ca394f2da1b2f8fbd40734c691ae97
Author: Alex Heneveld <[email protected]>
Date: 2017-10-11T19:50:22Z
improve locking for sensor values
fixes https://issues.apache.org/jira/browse/BROOKLYN-544,
introducing a public Lock for writes and callers, and the weaker uglier
monitor for very short internal synchronized blocks.
also adds a Locks convenience class for running code with a lock.
----
---