Creates a new SnapQueue, with the segment length set to 64.
Creates a new SnapQueue.
Creates a new SnapQueue.
length of the SnapQueue segments, usually between 32 and 256
Creates a new SnapQueue.
Creates a new SnapQueue.
length of the SnapQueue segments, usually between 32 and 256
whether or not the SnapQueue can leak (false
by default) -- gives
a small performance boost when true
, with the disadvantage that
up to L
previously dequeued elements are garbage collectable
(useful for applications where elements are small)
Concurrent queue with constant-time snapshots.