edu.emory.mathcs.backport.java.util.concurrent.helpers
Class FIFOWaitQueue
public
class
FIFOWaitQueue
extends WaitQueue
implements Serializable
Simple linked list queue used in FIFOSemaphore.
Methods are not synchronized; they depend on synch of callers.
Must be public, since it is used by Semaphore (outside this package).
NOTE: this class is NOT present in java.util.concurrent.
protected transient WaitNode head_
protected transient WaitNode tail_
public FIFOWaitQueue()
public WaitNode extract()
public int getLength()
public Collection getWaitingThreads()
public boolean hasNodes()
public void insert(WaitNode w)
public boolean isWaiting(Thread thread)
public void putBack(WaitNode w)