Package EDU.oswego.cs.dl.util.concurrent
Class FIFOSemaphore.FIFOWaitQueue
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.QueuedSemaphore.WaitQueue
-
- EDU.oswego.cs.dl.util.concurrent.FIFOSemaphore.FIFOWaitQueue
-
- Enclosing class:
- FIFOSemaphore
protected static class FIFOSemaphore.FIFOWaitQueue extends QueuedSemaphore.WaitQueue
Simple linked list queue used in FIFOSemaphore. Methods are not synchronized; they depend on synch of callers
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class EDU.oswego.cs.dl.util.concurrent.QueuedSemaphore.WaitQueue
QueuedSemaphore.WaitQueue.WaitNode
-
-
Field Summary
Fields Modifier and Type Field Description protected QueuedSemaphore.WaitQueue.WaitNode
head_
protected QueuedSemaphore.WaitQueue.WaitNode
tail_
-
Constructor Summary
Constructors Modifier Constructor Description protected
FIFOWaitQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueuedSemaphore.WaitQueue.WaitNode
extract()
protected void
insert(QueuedSemaphore.WaitQueue.WaitNode w)
-
-
-
Field Detail
-
head_
protected QueuedSemaphore.WaitQueue.WaitNode head_
-
tail_
protected QueuedSemaphore.WaitQueue.WaitNode tail_
-
-
Method Detail
-
insert
protected void insert(QueuedSemaphore.WaitQueue.WaitNode w)
- Specified by:
insert
in classQueuedSemaphore.WaitQueue
-
extract
protected QueuedSemaphore.WaitQueue.WaitNode extract()
- Specified by:
extract
in classQueuedSemaphore.WaitQueue
-
-