25 #ifndef CPN_THRESHOLDQUEUE_H
26 #define CPN_THRESHOLDQUEUE_H
29 #include "common_priv.h"
52 virtual void *InternalGetRawEnqueuePtr(
unsigned thresh,
unsigned chan);
53 virtual void InternalEnqueue(
unsigned count);
56 virtual const void *InternalGetRawDequeuePtr(
unsigned thresh,
unsigned chan);
57 virtual void InternalDequeue(
unsigned count);
59 virtual void InternalReset();
60 virtual unsigned UnlockedNumChannels()
const;
61 virtual unsigned UnlockedMaxThreshold()
const;
62 virtual unsigned UnlockedQueueLength()
const;
63 virtual unsigned UnlockedFreespace()
const;
64 virtual bool UnlockedFull()
const;
65 virtual unsigned UnlockedCount()
const;
66 virtual bool UnlockedEmpty()
const;
67 virtual unsigned UnlockedEnqueueChannelStride()
const;
68 virtual unsigned UnlockedDequeueChannelStride()
const;
70 unsigned UnlockedNumEnqueued()
const;
71 unsigned UnlockedNumDequeued()
const;
73 virtual void UnlockedGrow(
unsigned queueLen,
unsigned maxThresh);
82 TQImpl(
unsigned length,
unsigned maxthres,
unsigned numchan);
85 TQImpl *Grow(
unsigned queueLen,
unsigned maxThresh,
bool copy);
Top Representations of generic queues for the CPN library.
ThresholdQueueBase::ulong ulong
The base class for all queues in the CPN library.
A version of the ThresholdQueue that provides the CPN Queue interface This queue implementation creat...
This is a simplified internal representation of the queue attributes needed to create a queue...