mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Make VanillaChronicleHash.close() to wait until concurrent threads accessing the hash finish their work and don't permit new threads to come while close() is in progress and after that
This commit is contained in:
+1
@@ -57,6 +57,7 @@ public abstract class ReplicatedChronicleMapHolderImpl<K, V, R> extends Chaining
|
||||
return m.chronicleSet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChronicleHash<K, ?, ?, ?> hash() {
|
||||
return set() != null ? set() : map();
|
||||
}
|
||||
|
||||
+1
@@ -57,6 +57,7 @@ public abstract class VanillaChronicleMapHolderImpl<K, V, R> extends Chaining
|
||||
return m.chronicleSet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChronicleHash<K, ?, ?, ?> hash() {
|
||||
return set() != null ? set() : map();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user