|
CPN
Computational Process Networks
|
#include <ThresholdQueueBase.h>
Inheritance diagram for ThresholdQueueBase:
Collaboration diagram for ThresholdQueueBase:Public Types | |
| typedef unsigned long | ulong |
Public Member Functions | |
| ThresholdQueueBase (ulong elemSize, ulong queueLen, ulong maxThresh, ulong numChans=1) | |
| ThresholdQueueBase (ulong elemSize, const ThresholdQueueAttr &attr) | |
| ~ThresholdQueueBase (void) | |
| void | Reset (void) |
| void * | GetRawEnqueuePtr (ulong enqueueThresh, ulong chan=0) const |
| void | Enqueue (ulong count) |
| const void * | GetRawDequeuePtr (ulong dequeueThresh, ulong chan=0) const |
| void | Dequeue (ulong count) |
| ulong | Count (void) const |
| ulong | Freespace (void) const |
| bool | Empty (void) const |
| bool | Full (void) const |
| ulong | QueueLength (void) const |
| ulong | MaxThreshold (void) const |
| ulong | NumChannels (void) const |
| ulong | ChannelStride (void) const |
| ulong | ElementsEnqueued (void) const |
| ulong | ElementsDequeued (void) const |
| void | Grow (ulong queueLen, ulong maxThresh) |
Protected Member Functions | |
| void | AllocateBuf (ulong queueLen, ulong maxThresh, ulong numChans, bool useMBS) |
Protected Attributes | |
| ulong | elementSize |
| ulong | head |
| ulong | tail |
| ulong | queueLength |
| ulong | maxThreshold |
| ulong | numChannels |
| ulong | channelStride |
| ulong | chanOffset |
| ulong | baseOffset |
| ulong | elementsEnqueued |
| ulong | elementsDequeued |
| void * | base |
| MirrorBufferSet * | mbs |
Definition at line 86 of file ThresholdQueueBase.h.
| typedef unsigned long ThresholdQueueBase::ulong |
Definition at line 90 of file ThresholdQueueBase.h.
| ThresholdQueueBase::ThresholdQueueBase | ( | ulong | elemSize, |
| ulong | queueLen, | ||
| ulong | maxThresh, | ||
| ulong | numChans = 1 |
||
| ) |
Definition at line 20 of file ThresholdQueueBase.cc.
References AllocateBuf(), maxThreshold, numChannels, queueLength, and Reset().
Here is the call graph for this function:| ThresholdQueueBase::ThresholdQueueBase | ( | ulong | elemSize, |
| const ThresholdQueueAttr & | attr | ||
| ) |
Definition at line 42 of file ThresholdQueueBase.cc.
References AllocateBuf(), ThresholdQueueAttr::baseOffset, baseOffset, ThresholdQueueAttr::chanOffset, chanOffset, elementSize, maxThreshold, numChannels, MirrorBufferSet::PageSize(), queueLength, Reset(), and ThresholdQueueAttr::useMBS.
Here is the call graph for this function:| ThresholdQueueBase::~ThresholdQueueBase | ( | void | ) |
Definition at line 120 of file ThresholdQueueBase.cc.
|
protected |
Definition at line 71 of file ThresholdQueueBase.cc.
References base, baseOffset, MirrorBufferSet::BufferSize(), channelStride, chanOffset, elementSize, maxThreshold, mbs, MINIMUM_ALIGNMENT, MirrorBufferSet::MirrorSize(), numChannels, queueLength, Reset(), and MirrorBufferSet::Supported().
Referenced by Grow(), and ThresholdQueueBase().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 114 of file ThresholdQueueBase.h.
References channelStride.
Referenced by CPN::ThresholdQueue::UnlockedDequeueChannelStride(), and CPN::ThresholdQueue::UnlockedEnqueueChannelStride().
Here is the caller graph for this function:| ThresholdQueueBase::ulong ThresholdQueueBase::Count | ( | void | ) | const |
Definition at line 217 of file ThresholdQueueBase.cc.
References head, queueLength, and tail.
Referenced by Empty(), CPN::RemoteQueue::EnqueuePacket(), Freespace(), GetRawDequeuePtr(), CPN::ThresholdQueue::TQImpl::Grow(), Grow(), CPN::RemoteQueue::InternalCheckStatus(), CPN::ThresholdQueue::InternalEnqueue(), CPN::RemoteQueue::ReadBlockPacket(), CPN::RemoteQueue::SendDequeuePacket(), CPN::RemoteQueue::SendEnqueuePacket(), CPN::ThresholdQueue::UnlockedCount(), CPN::RemoteQueue::UnlockedCount(), and CPN::RemoteQueue::WriteBlockPacket().
Here is the caller graph for this function:| void ThresholdQueueBase::Dequeue | ( | ulong | count | ) |
Definition at line 205 of file ThresholdQueueBase.cc.
References elementsDequeued, head, and queueLength.
Referenced by CPN::ThresholdQueue::TQImpl::Grow(), Grow(), CPN::ThresholdQueue::InternalDequeue(), and CPN::ThresholdQueue::InternalEnqueue().
Here is the caller graph for this function:
|
inline |
Definition at line 118 of file ThresholdQueueBase.h.
References elementsDequeued.
Referenced by CPN::ThresholdQueue::TQImpl::Grow(), Grow(), and CPN::ThresholdQueue::UnlockedNumDequeued().
Here is the caller graph for this function:
|
inline |
Definition at line 117 of file ThresholdQueueBase.h.
References elementsEnqueued.
Referenced by CPN::ThresholdQueue::TQImpl::Grow(), Grow(), and CPN::ThresholdQueue::UnlockedNumEnqueued().
Here is the caller graph for this function:
|
inline |
Definition at line 107 of file ThresholdQueueBase.h.
References Count().
Referenced by CPN::RemoteQueue::InternalCheckStatus(), CPN::ThresholdQueue::UnlockedEmpty(), and CPN::RemoteQueue::UnlockedEmpty().
Here is the call graph for this function:
Here is the caller graph for this function:| void ThresholdQueueBase::Enqueue | ( | ulong | count | ) |
Definition at line 162 of file ThresholdQueueBase.cc.
References base, channelStride, elementsEnqueued, elementSize, maxThreshold, mbs, numChannels, queueLength, and tail.
Referenced by Grow(), and CPN::ThresholdQueue::InternalEnqueue().
Here is the caller graph for this function:| ThresholdQueueBase::ulong ThresholdQueueBase::Freespace | ( | void | ) | const |
Definition at line 229 of file ThresholdQueueBase.cc.
References Count(), and queueLength.
Referenced by CPN::RemoteQueue::EnqueuePacket(), Full(), GetRawEnqueuePtr(), CPN::RemoteQueue::InternalCheckStatus(), and CPN::ThresholdQueue::UnlockedFreespace().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 108 of file ThresholdQueueBase.h.
References Freespace().
Referenced by CPN::ThresholdQueue::UnlockedFull().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 148 of file ThresholdQueueBase.cc.
References base, channelStride, Count(), elementSize, head, MaxThreshold(), and queueLength.
Referenced by ThresholdQueue< T >::GetDequeuePtr(), CPN::ThresholdQueue::TQImpl::Grow(), Grow(), CPN::ThresholdQueue::InternalEnqueue(), and CPN::ThresholdQueue::InternalGetRawDequeuePtr().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 134 of file ThresholdQueueBase.cc.
References base, channelStride, elementSize, Freespace(), MaxThreshold(), queueLength, and tail.
Referenced by ThresholdQueue< T >::GetEnqueuePtr(), Grow(), CPN::ThresholdQueue::InternalEnqueue(), and CPN::ThresholdQueue::InternalGetRawEnqueuePtr().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 242 of file ThresholdQueueBase.cc.
References AllocateBuf(), Count(), Dequeue(), ElementsDequeued(), elementsDequeued, ElementsEnqueued(), elementsEnqueued, elementSize, Enqueue(), GetRawDequeuePtr(), GetRawEnqueuePtr(), MaxThreshold(), mbs, numChannels, and QueueLength().
Here is the call graph for this function:
|
inline |
Definition at line 111 of file ThresholdQueueBase.h.
References maxThreshold.
Referenced by CPN::RemoteQueue::EnqueuePacket(), GetRawDequeuePtr(), GetRawEnqueuePtr(), CPN::ThresholdQueue::TQImpl::Grow(), Grow(), CPN::RemoteQueue::GrowPacket(), CPN::ThresholdQueue::InternalEnqueue(), CPN::RemoteQueue::SendEnqueuePacket(), CPN::RemoteQueue::SendGrowPacket(), CPN::RemoteQueue::UnlockedGrow(), and CPN::ThresholdQueue::UnlockedMaxThreshold().
Here is the caller graph for this function:
|
inline |
Definition at line 113 of file ThresholdQueueBase.h.
References numChannels.
Referenced by CPN::RemoteQueue::EnqueuePacket(), CPN::ThresholdQueue::InternalEnqueue(), CPN::RemoteQueue::SendEnqueuePacket(), and CPN::ThresholdQueue::UnlockedNumChannels().
Here is the caller graph for this function:
|
inline |
Definition at line 110 of file ThresholdQueueBase.h.
References queueLength.
Referenced by CPN::RemoteQueue::EnqueuePacket(), Grow(), and CPN::ThresholdQueue::UnlockedQueueLength().
Here is the caller graph for this function:| void ThresholdQueueBase::Reset | ( | void | ) |
Definition at line 108 of file ThresholdQueueBase.cc.
References elementsDequeued, elementsEnqueued, head, and tail.
Referenced by AllocateBuf(), CPN::ThresholdQueue::InternalReset(), CPN::RemoteQueue::ResetPacket(), and ThresholdQueueBase().
Here is the caller graph for this function:
|
protected |
Definition at line 129 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), Enqueue(), GetRawDequeuePtr(), GetRawEnqueuePtr(), and ~ThresholdQueueBase().
|
protected |
Definition at line 127 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), and ThresholdQueueBase().
|
protected |
Definition at line 126 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), ChannelStride(), Enqueue(), GetRawDequeuePtr(), and GetRawEnqueuePtr().
|
protected |
Definition at line 127 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), and ThresholdQueueBase().
|
protected |
Definition at line 128 of file ThresholdQueueBase.h.
Referenced by Dequeue(), ElementsDequeued(), Grow(), and Reset().
|
protected |
Definition at line 128 of file ThresholdQueueBase.h.
Referenced by ElementsEnqueued(), Enqueue(), Grow(), and Reset().
|
protected |
Definition at line 123 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), Enqueue(), GetRawDequeuePtr(), GetRawEnqueuePtr(), Grow(), and ThresholdQueueBase().
|
protected |
Definition at line 124 of file ThresholdQueueBase.h.
Referenced by Count(), Dequeue(), GetRawDequeuePtr(), CPN::ThresholdQueue::TQImpl::Grow(), and Reset().
|
protected |
Definition at line 125 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), Enqueue(), MaxThreshold(), and ThresholdQueueBase().
|
protected |
Definition at line 130 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), Enqueue(), Grow(), and ~ThresholdQueueBase().
|
protected |
Definition at line 126 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), Enqueue(), Grow(), NumChannels(), and ThresholdQueueBase().
|
protected |
Definition at line 125 of file ThresholdQueueBase.h.
Referenced by AllocateBuf(), Count(), Dequeue(), Enqueue(), Freespace(), GetRawDequeuePtr(), GetRawEnqueuePtr(), QueueLength(), and ThresholdQueueBase().
|
protected |
Definition at line 124 of file ThresholdQueueBase.h.
Referenced by Count(), Enqueue(), GetRawEnqueuePtr(), CPN::ThresholdQueue::TQImpl::Grow(), and Reset().
1.8.5