@@ -84,8 +84,8 @@ public actual open class LockFreeLinkedListNode {
84
84
while (true ) { // lock-free loop on prev.next
85
85
val currentPrev = prevNode
86
86
return when {
87
- currentPrev is LIST_CLOSED_FOR_ALL -> false
88
- currentPrev is LIST_CLOSED_FOR_SOME ->
87
+ currentPrev is ListClosedForAll -> false
88
+ currentPrev is ListClosedForSome ->
89
89
allowedAfterPartialClosing && currentPrev.addLast(node, allowedAfterPartialClosing)
90
90
currentPrev.addNext(node, this ) -> true
91
91
else -> continue
@@ -96,12 +96,12 @@ public actual open class LockFreeLinkedListNode {
96
96
/* *
97
97
* Forbids adding some of the new items to this list.
98
98
*/
99
- public actual fun closeForSome () { addLast(LIST_CLOSED_FOR_SOME (), allowedAfterPartialClosing = false ) }
99
+ public actual fun closeForSome () { addLast(ListClosedForSome (), allowedAfterPartialClosing = false ) }
100
100
101
101
/* *
102
102
* Forbids adding new items to this list.
103
103
*/
104
- public actual fun close () { addLast(LIST_CLOSED_FOR_ALL (), allowedAfterPartialClosing = true ) }
104
+ public actual fun close () { addLast(ListClosedForAll (), allowedAfterPartialClosing = true ) }
105
105
106
106
/* *
107
107
* Given:
@@ -291,6 +291,6 @@ public actual open class LockFreeLinkedListHead : LockFreeLinkedListNode() {
291
291
override val isRemoved: Boolean get() = false
292
292
}
293
293
294
- private class LIST_CLOSED_FOR_SOME : LockFreeLinkedListNode ()
294
+ private class ListClosedForSome : LockFreeLinkedListNode ()
295
295
296
- private class LIST_CLOSED_FOR_ALL : LockFreeLinkedListNode ()
296
+ private class ListClosedForAll : LockFreeLinkedListNode ()
0 commit comments