protected static class PrioritySemaphore.PriorityWaitQueue extends QueuedSemaphore.WaitQueue
QueuedSemaphore.WaitQueue.WaitNode| Modifier and Type | Field and Description |
|---|---|
protected FIFOSemaphore.FIFOWaitQueue[] |
cells_
An array of wait queues, one per priority
|
protected int |
maxIndex_
The index of the highest priority cell that may need to be signalled,
or -1 if none.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PriorityWaitQueue() |
| Modifier and Type | Method and Description |
|---|---|
protected QueuedSemaphore.WaitQueue.WaitNode |
extract() |
protected void |
insert(QueuedSemaphore.WaitQueue.WaitNode w) |
protected final FIFOSemaphore.FIFOWaitQueue[] cells_
protected int maxIndex_
protected void insert(QueuedSemaphore.WaitQueue.WaitNode w)
insert in class QueuedSemaphore.WaitQueueprotected QueuedSemaphore.WaitQueue.WaitNode extract()
extract in class QueuedSemaphore.WaitQueue