public class ShortPriorityQueues
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ShortPriorityQueues.SynchronizedPriorityDequeue
Wrapper class for synchronization
|
static class |
ShortPriorityQueues.SynchronizedPriorityQueue
Wrapper class for synchronization
|
| Constructor and Description |
|---|
ShortPriorityQueues() |
| Modifier and Type | Method and Description |
|---|---|
static ShortPriorityDequeue |
synchronize(ShortPriorityDequeue dequeue)
Returns a synchronized PriorityDequeue instance based on the instance given.
|
static ShortPriorityDequeue |
synchronize(ShortPriorityDequeue dequeue,
java.lang.Object mutex)
Returns a synchronized PriorityDequeue instance based on the instance given.
|
static ShortPriorityQueue |
synchronize(ShortPriorityQueue queue)
Returns a synchronized PriorityQueue instance based on the instance given.
|
static ShortPriorityQueue |
synchronize(ShortPriorityQueue queue,
java.lang.Object mutex)
Returns a synchronized PriorityQueue instance based on the instance given.
|
public static ShortPriorityQueue synchronize(ShortPriorityQueue queue)
queue - that should be synchronizedpublic static ShortPriorityQueue synchronize(ShortPriorityQueue queue, java.lang.Object mutex)
queue - that should be synchronizedmutex - is the controller of the synchronization block.public static ShortPriorityDequeue synchronize(ShortPriorityDequeue dequeue)
dequeue - that should be synchronizedpublic static ShortPriorityDequeue synchronize(ShortPriorityDequeue dequeue, java.lang.Object mutex)
dequeue - that should be synchronizedmutex - is the controller of the synchronization block.