31 #ifndef PTLIB_QCHANNEL_H 32 #define PTLIB_QCHANNEL_H 134 #endif // PTLIB_QCHANNEL_H PQueueChannel(PINDEX queueSize=0)
Create a new queue channel with the specified maximum size.
PSyncPoint unempty
Definition: qchannel.h:129
PINDEX queueSize
Definition: qchannel.h:128
PINDEX GetSize() const
Get the queue size.
Definition: qchannel.h:119
~PQueueChannel()
Delete queue and release memory used.
PMutex mutex
Definition: qchannel.h:126
PINDEX dequeuePos
Definition: qchannel.h:128
PINDEX queueLength
Definition: qchannel.h:128
virtual PBoolean Open(PINDEX queueSize)
Open a queue, allocating the queueSize bytes.
PSyncPoint unfull
Definition: qchannel.h:130
BOOL PBoolean
Definition: object.h:102
PINDEX enqueuePos
Definition: qchannel.h:128
virtual PBoolean Read(void *buf, PINDEX len)
Low level read from the file channel.
BYTE * queueBuffer
Definition: qchannel.h:127
Abstract class defining I/O channel semantics.
Definition: channel.h:107
Class for implementing a serial queue channel in memory.
Definition: qchannel.h:53
virtual PBoolean Write(const void *buf, PINDEX len)
Low level write to the file channel.
virtual PBoolean Close()
Close the file channel.
This class defines a thread synchronisation object.
Definition: syncpoint.h:67
PINDEX GetLength() const
Get the current queue length.
Definition: qchannel.h:122