23 #ifndef CPN_REMOTEQUEUE_H
24 #define CPN_REMOTEQUEUE_H
26 #include "common_priv.h"
43 class RemoteQueueHolder;
90 void UnlockedGrow(
unsigned queueLen,
unsigned maxThresh);
127 void WriteBytes(
const iovec *iov,
unsigned iovcnt);
unsigned maxwritethreshold
void ReadBlockPacket(const Packet &packet)
ConnectionServer *const server
void WriteBlockPacket(const Packet &packet)
unsigned QueueLength() const
void DequeuePacket(const Packet &packet)
void UnlockedSignalWriterTagChanged()
A FileHandle customized with some socket specific functionality and functions.
void SendEndOfWritePacket()
void UnlockedGrow(unsigned queueLen, unsigned maxThresh)
void InternalDequeue(unsigned count)
void SendEndOfReadPacket()
void UpdateClock(const Packet &packet)
void SetupPacket(Packet &packet)
void SendWriteBlockPacket()
auto_ptr< Pthread > fileThread
void EndOfReadPacket(const Packet &packet)
void FlushPacket(const Packet &packet)
void SendReadBlockPacket()
void * ActionThreadEntryPoint()
void HandleError(const ErrnoException &e)
void D4RTagPacket(const Packet &packet)
void * FileThreadEntryPoint()
shared_ptr< D4R::Node > mocknode
auto_ptr< Pthread > actionThread
void EndOfWritePacket(const Packet &packet)
void IDWriterPacket(const Packet &packet)
void UnlockedSignalReaderTagChanged()
void LogState()
For debug ONLY!
std::string ClockString() const
unsigned UnlockedCount() const
A version of the ThresholdQueue that provides the CPN Queue interface This queue implementation creat...
RemoteQueue(KernelBase *k, Mode_t mode, ConnectionServer *s, RemoteQueueHolder *h, const SimpleQueueAttr &attr, bool usembs)
void ResetPacket(const Packet &packet)
Default threshold queue implementation.
void InternalCheckStatus()
std::string GetState()
For debugging.
RemoteQueueHolder *const holder
void IDReaderPacket(const Packet &packet)
PthreadCondition actionCond
void WriteBytes(const iovec *iov, unsigned iovcnt)
void EnqueuePacket(const Packet &packet)
unsigned UnlockedQueueLength() const
This is a simplified internal representation of the queue attributes needed to create a queue...
void GrowPacket(const Packet &packet)
bool UnlockedEmpty() const
void InternalEnqueue(unsigned count)