Skip to content

Commit

Permalink
Double-checked locking implementation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
abreslav committed Feb 11, 2013
1 parent c595d95 commit 0cf272e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -81,8 +81,8 @@ public T get() {
synchronized (lock) {
_value = value;
if (_value == null) {
value = computable.compute();
_value = value;
_value = computable.compute();
value = _value;
}
return _value;
}
Expand Down

0 comments on commit 0cf272e

Please sign in to comment.