Cleaned comments, mark linked nodes as volatile for thread visibility

This commit is contained in:
nathan 2020-09-14 22:18:00 +02:00
parent 470f3592ef
commit a409f688b7
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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