SharedMemChannelMapping Class Reference

#include <sharedmemchannelmapping.h>

Inheritance diagram for SharedMemChannelMapping:

Inheritance graph
[legend]
Collaboration diagram for SharedMemChannelMapping:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SharedMemChannelMapping (const char *name, BasicSmartPointer< InstructionContext > instrContext, int id)
virtual ~SharedMemChannelMapping ()
int openChannel (key_t key)
int createChannel (long size)
void releaseChannel ()
virtual bool isConnected ()
virtual void send (trace_event_t &event)
virtual trace_event_t next ()

Constructor & Destructor Documentation

SharedMemChannelMapping::SharedMemChannelMapping const char *  name,
BasicSmartPointer< InstructionContext instrContext,
int  id
 

Construct a new SharedMemChannelMapping.

Parameters:
name The channel name.
instrContext The channel's instruction context.
id The channel id.

SharedMemChannelMapping::~SharedMemChannelMapping  )  [virtual]
 


Member Function Documentation

int SharedMemChannelMapping::openChannel key_t  key  ) 
 

Shared memory implementation of openChannel.

Parameters:
key The channel key.
Returns:
The channel key on success, 0 otherwise.

int SharedMemChannelMapping::createChannel long  size  ) 
 

Shared memory implementation of createChannel.

Parameters:
size The number of messages that may be in the channel at one time.
Returns:
The channel key on success, 0 otherwise.

void SharedMemChannelMapping::releaseChannel  ) 
 

Shared memory implementation of releaseChannel. Releases all resources associated with the channel.

virtual bool SharedMemChannelMapping::isConnected  )  [inline, virtual]
 

void SharedMemChannelMapping::send trace_event_t event  )  [virtual]
 

Shared memory implementation of send.

Parameters:
event The trace event to send.

Implements TraceChannel.

trace_event_t SharedMemChannelMapping::next  )  [virtual]
 

Shared memory implementation of next(). Get the next trace_event_t from the channel. This function will block until there is a new event on the channel or the read is interupted.

Returns:
The trace event on success, a trace event with type = T_NULL otherwise.

Implements TraceChannel.


The documentation for this class was generated from the following files:
Generated on Wed Apr 5 21:05:18 2006 for Sesame by  doxygen 1.4.6