public final class SortTODSharedDeque extends SortSharedDeque
head, tail
BUFFER_MASK, BUFFER_SIZE, HEAD_INITIAL_VALUE, LOG_PAGES_PER_BUFFER, META_DATA_SIZE, NEXT_FIELD_OFFSET, PAGES_PER_BUFFER, TAIL_INITIAL_VALUE, USABLE_BUFFER_BYTES
Constructor and Description |
---|
SortTODSharedDeque(String name,
RawPageSpace rps,
int arity) |
Modifier and Type | Method and Description |
---|---|
protected Word |
getKey(Address obj)
Return the sorting key for the object passed as a parameter.
|
sort
alloc, assertExhausted, clearDeque, dequeue, dequeue, dequeueAndWait, dequeueAndWait, enqueue, enqueuedPages, free, getArity, getNext, getPrev, prepare, prepareNonBlocking, reset
bufferEnd, bufferFirst, bufferLast, bufferLast, bufferLastOffset, bufferOffset, bufferStart
public SortTODSharedDeque(String name, RawPageSpace rps, int arity)
name
- human-readable name of the queuerps
- The space from which the instance should obtain buffers.arity
- The arity of the data to be enqueuedprotected Word getKey(Address obj)
SortSharedDeque
getKey
in class SortSharedDeque
obj
- The address of the object whose key is wanted