Cleaned comments, mark linked nodes as volatile for thread visibility
This commit is contained in:
parent
470f3592ef
commit
a409f688b7
|
@ -38,7 +38,7 @@ object Extras {
|
||||||
// set for the project
|
// set for the project
|
||||||
const val description = "Utilities for use within Java projects"
|
const val description = "Utilities for use within Java projects"
|
||||||
const val group = "com.dorkbox"
|
const val group = "com.dorkbox"
|
||||||
const val version = "1.8"
|
const val version = "1.8.1"
|
||||||
|
|
||||||
// set as project.ext
|
// set as project.ext
|
||||||
const val name = "Utilities"
|
const val name = "Utilities"
|
||||||
|
|
|
@ -27,8 +27,8 @@ public
|
||||||
class ConcurrentEntry<T> {
|
class ConcurrentEntry<T> {
|
||||||
private final T value;
|
private final T value;
|
||||||
|
|
||||||
private ConcurrentEntry<T> next;
|
private volatile ConcurrentEntry<T> next;
|
||||||
private ConcurrentEntry<T> prev;
|
private volatile ConcurrentEntry<T> prev;
|
||||||
|
|
||||||
public
|
public
|
||||||
ConcurrentEntry(T value, ConcurrentEntry<T> next) {
|
ConcurrentEntry(T value, ConcurrentEntry<T> next) {
|
||||||
|
@ -55,7 +55,7 @@ class ConcurrentEntry<T> {
|
||||||
// can not nullify references to help GC since running iterators might not see the entire set
|
// can not nullify references to help GC since running iterators might not see the entire set
|
||||||
// if this element is their current element
|
// if this element is their current element
|
||||||
//next = null;
|
//next = null;
|
||||||
//predecessor = null;
|
//prev = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public
|
public
|
||||||
|
|
Loading…
Reference in New Issue