Package EDU.oswego.cs.dl.util.concurrent
Class WaitFreeQueue.Node
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.WaitFreeQueue.Node
-
- Enclosing class:
- WaitFreeQueue
protected static final class WaitFreeQueue.Node extends java.lang.ObjectList nodes for Queue
-
-
Field Summary
Fields Modifier and Type Field Description protected WaitFreeQueue.Nodenextprotected java.lang.Objectvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedNode(java.lang.Object x)Make a new node with indicated item, and null link
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanCASNext(WaitFreeQueue.Node oldNext, WaitFreeQueue.Node newNext)Simulate a CAS operation for 'next' field
-
-
-
Field Detail
-
value
protected final java.lang.Object value
-
next
protected volatile WaitFreeQueue.Node next
-
-
Method Detail
-
CASNext
protected boolean CASNext(WaitFreeQueue.Node oldNext, WaitFreeQueue.Node newNext)
Simulate a CAS operation for 'next' field
-
-