Change atomic property to val

This commit is contained in:
Him188 2019-12-13 09:58:13 +08:00
parent 71f639ae0e
commit 47d6d6e53d

View File

@ -118,7 +118,7 @@ class LockFreeLinkedList<E> : MutableList<E>, RandomAccess {
currentNoderef.value = value
}
private var currentNoderef: AtomicRef<Node<E>> = atomic(head) // concurrent compatibility
private val currentNoderef: AtomicRef<Node<E>> = atomic(head) // concurrent compatibility
/**
* Check if