Skip to content

Commit

Permalink
make the rebuilding boolean volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Kotal committed Apr 1, 2020
1 parent 0cc487e commit 2bf11f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public final class Suggester implements Closeable {

private final int rebuildParallelismLevel;

private boolean rebuilding;
private volatile boolean rebuilding;
private final Lock rebuildLock = new ReentrantLock();
private final Condition rebuildDone = rebuildLock.newCondition();

Expand Down

0 comments on commit 2bf11f3

Please sign in to comment.