SST  11.0.0
StructuralSimulationToolkit
SST::Core::Interprocess::SHMParent< TunnelType > Class Template Reference

Class supports an IPC tunnel between two or more processes via posix shared memory This class creates the tunnel for the parent/master process. More...

#include <shmparent.h>

Public Member Functions

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

Detailed Description

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

Class supports an IPC tunnel between two or more processes via posix shared memory This class creates the tunnel for the parent/master process.

Template Parameters
TunnelTypeTunnel definition

Constructor & Destructor Documentation

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

Parent/master manager for an IPC tunnel Creates a shared memory region and initializes a TunnelType data strucgture in the region.

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

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