org.metasyntactic.thread.concurrent
Class FirstInFirstOutSemaphore.FirstInFirstOutWaitQueue

java.lang.Object
  |
  +--org.metasyntactic.thread.concurrent.QueuedSemaphore.WaitQueue
        |
        +--org.metasyntactic.thread.concurrent.FirstInFirstOutSemaphore.FirstInFirstOutWaitQueue
Enclosing class:
FirstInFirstOutSemaphore

protected static class FirstInFirstOutSemaphore.FirstInFirstOutWaitQueue
extends QueuedSemaphore.WaitQueue

Simple linked list queue used in FirstInFirstOutSemaphore. Methods are not synchronized; they depend on synch of callers


Nested Class Summary
 
Nested classes inherited from class org.metasyntactic.thread.concurrent.QueuedSemaphore.WaitQueue
QueuedSemaphore.WaitQueue.WaitNode
 
Constructor Summary
protected FirstInFirstOutSemaphore.FirstInFirstOutWaitQueue()
           
 
Method Summary
protected  QueuedSemaphore.WaitQueue.WaitNode extract()
           
protected  void insert(QueuedSemaphore.WaitQueue.WaitNode w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirstInFirstOutSemaphore.FirstInFirstOutWaitQueue

protected FirstInFirstOutSemaphore.FirstInFirstOutWaitQueue()
Method Detail

insert

protected void insert(QueuedSemaphore.WaitQueue.WaitNode w)
Specified by:
insert in class QueuedSemaphore.WaitQueue

extract

protected QueuedSemaphore.WaitQueue.WaitNode extract()
Specified by:
extract in class QueuedSemaphore.WaitQueue