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
|
||||
const val description = "Utilities for use within Java projects"
|
||||
const val group = "com.dorkbox"
|
||||
const val version = "1.8"
|
||||
const val version = "1.8.1"
|
||||
|
||||
// set as project.ext
|
||||
const val name = "Utilities"
|
||||
|
@ -27,8 +27,8 @@ public
|
||||
class ConcurrentEntry<T> {
|
||||
private final T value;
|
||||
|
||||
private ConcurrentEntry<T> next;
|
||||
private ConcurrentEntry<T> prev;
|
||||
private volatile ConcurrentEntry<T> next;
|
||||
private volatile ConcurrentEntry<T> prev;
|
||||
|
||||
public
|
||||
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
|
||||
// if this element is their current element
|
||||
//next = null;
|
||||
//predecessor = null;
|
||||
//prev = null;
|
||||
}
|
||||
|
||||
public
|
||||
|
Loading…
Reference in New Issue
Block a user