network
Class CMessagePipe
in Network.h
in Network.cpp
- class CMessagePipe
A message pipe with two ends, communication flowing in both directions.
The two ends are indexed with the [] operator or the GetEnd() method.
Each end has two associated queues, one input and one output queue. The
input queue of one End is the output queue of the other End and vice versa.
m_CondMutex
private pthread_mutex_t m_CondMutex;
m_Ends
private CMessagePipe::End m_Ends[ 2 ];
m_Queues
private CLockedMessageDeque m_Queues[ 2 ];
CMessagePipe
public CMessagePipe();
GetEnd
public inline IMessagePipeEnd& GetEnd( int idx );
- Return one of the two ends of the pipe
operator[]
public inline IMessagePipeEnd& operator[]( int idx );
- Return one of the two ends of the pipe