SST  11.1.0
StructuralSimulationToolkit
SST::Core::Interprocess::MMAPParent< TunnelType > Class Template Reference

Class supports an IPC tunnel between two or more processes, via an mmap'd file. More...

#include <mmapparent.h>

Public Member Functions

 MMAPParent (uint32_t comp_id, size_t numBuffers, size_t bufferSize, uint32_t expectedChildren=1)
 Parent/master manager for an IPC Tunnel Creates a memory-mapped file and initializes a TunnelType data structure in the mmap'd region. More...
 
virtual ~MMAPParent ()
 Destructor.
 
const std::string & getRegionName (void) const
 returns name of the mmap'd file
 
TunnelType * getTunnel ()
 return the created tunnel pointer
 

Detailed Description

template<typename TunnelType>
class SST::Core::Interprocess::MMAPParent< TunnelType >

Class supports an IPC tunnel between two or more processes, via an mmap'd file.

This class creates the tunnel for the parent/master process

Template Parameters
TunnelTypeTunnel definition

Constructor & Destructor Documentation

template<typename TunnelType >
SST::Core::Interprocess::MMAPParent< TunnelType >::MMAPParent ( uint32_t  comp_id,
size_t  numBuffers,
size_t  bufferSize,
uint32_t  expectedChildren = 1 
)
inline

Parent/master manager for an IPC Tunnel Creates a memory-mapped file and initializes a TunnelType data structure in the mmap'd region.

Parameters
comp_idComponent ID of owner
numBuffersNumber of buffers for which we should tunnel
bufferSizeHow large each core's buffer should be How many child processes will connect to the tunnel

The documentation for this class was generated from the following file: