SST
14.1.0
StructuralSimulationToolkit
|
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 | |
Class supports an IPC tunnel between two or more processes via posix shared memory This class creates the tunnel for the parent/master process.
TunnelType | Tunnel definition |
|
inline |
Parent/master manager for an IPC tunnel Creates a shared memory region and initializes a TunnelType data strucgture in the region.
comp_id | Component ID of owner |
numBuffers | Number of buffers for which we should tunnel |
bufferSize | How large each core's buffer should be |
expectedChildren | How many child processes will connect to the tunnel |