Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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.


Inner Classes, Typedefs, and Enums
struct CMessagePipe::End
          
 
Field Summary
private pthread_mutex_t m_CondMutex
          
private CMessagePipe::End[ 2 ] m_Ends
          
private CLockedMessageDeque[ 2 ] m_Queues
          
 
Constructor Summary
CMessagePipe()
          
 
Method Summary
 inline IMessagePipeEnd& GetEnd( int idx )
          Return one of the two ends of the pipe
 inline IMessagePipeEnd& operator[]( int idx )
          Return one of the two ends of the pipe
 

Field Detail

m_CondMutex

private pthread_mutex_t m_CondMutex;

m_Ends

private CMessagePipe::End m_Ends[ 2 ];

m_Queues

private CLockedMessageDeque m_Queues[ 2 ];


Constructor Detail

CMessagePipe

public CMessagePipe();


Method Detail

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

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD