This class extends the RollingMultiplexingDataManager class to deal with shared memory. More...
#include <ShmRollingMultiplexingDataManager.h>
Public Member Functions | |
ShmRollingMultiplexingDataManager (int32_t depth) | |
Constructor. | |
int32_t | computeMemorySize () |
This method returns the number of bites that are necessary to store the date of the class. | |
void | mapMemory (char *address) |
This method maps the data that the ShmRollingMultiplexingDataManager uses from the address passed by argument. |
This class extends the RollingMultiplexingDataManager class to deal with shared memory.
Definition at line 15 of file ShmRollingMultiplexingDataManager.h.
fesa::ShmRollingMultiplexingDataManager::ShmRollingMultiplexingDataManager | ( | int32_t | depth | ) |
Constructor.
depth | The number of slots the multiplexing manager will support |
Definition at line 11 of file ShmRollingMultiplexingDataManager.cpp.
int32_t fesa::ShmRollingMultiplexingDataManager::computeMemorySize | ( | ) | [virtual] |
This method returns the number of bites that are necessary to store the date of the class.
Implements fesa::RollingMultiplexingDataManager.
Definition at line 17 of file ShmRollingMultiplexingDataManager.cpp.
References fesa::RollingMultiplexingDataManager::depth_, and fesa::AbstractMutex::getSize().
void fesa::ShmRollingMultiplexingDataManager::mapMemory | ( | char * | address | ) | [virtual] |
This method maps the data that the ShmRollingMultiplexingDataManager uses from the address passed by argument.
The | address where the allocated memory starts |
Implements fesa::RollingMultiplexingDataManager.
Definition at line 35 of file ShmRollingMultiplexingDataManager.cpp.
References fesa::RollingMultiplexingDataManager::currentCycleStampsCol_, fesa::RollingMultiplexingDataManager::currentId_, fesa::RollingMultiplexingDataManager::currentIdsCol_, fesa::RollingMultiplexingDataManager::currentPosition_, fesa::RollingMultiplexingDataManager::depth_, fesa::AbstractMutex::getSize(), and fesa::RollingMultiplexingDataManager::mutex_.