EDU.oswego.cs.dl.util.concurrent

Class WaitFreeQueue.Node

Enclosing Class:
WaitFreeQueue

protected static final class WaitFreeQueue.Node
extends Object

List nodes for Queue *

Field Summary

protected WaitFreeQueue.Node
next
protected Object
value

Constructor Summary

Node(Object x)
Make a new node with indicated item, and null link *

Method Summary

protected boolean
CASNext(WaitFreeQueue.Node oldNext, WaitFreeQueue.Node newNext)
Simulate a CAS operation for 'next' field *

Field Details

next

protected WaitFreeQueue.Node next


value

protected final Object value

Constructor Details

Node

protected Node(Object x)
Make a new node with indicated item, and null link *

Method Details

CASNext

protected boolean CASNext(WaitFreeQueue.Node oldNext,
                          WaitFreeQueue.Node newNext)
Simulate a CAS operation for 'next' field *