The shared memory access class.
More...
#include <eshmem.h>
The shared memory access class.
◆ ESharedMemory() [1/2]
ESharedMemory::ESharedMemory |
( |
| ) |
|
◆ ESharedMemory() [2/2]
ESharedMemory::ESharedMemory |
( |
cpStr |
file, |
|
|
Int |
id, |
|
|
Int |
size |
|
) |
| |
Class constructor.
- Parameters
-
file | the file name associated with the shared memory. |
id | the identifier for the shared memory. |
size | the amount of memory to allocate for this shared memory object. |
◆ ~ESharedMemory()
ESharedMemory::~ESharedMemory |
( |
| ) |
|
◆ getDataPtr()
pVoid ESharedMemory::getDataPtr |
( |
| ) |
|
|
inline |
Retrieves a pointer to the first location of the shated memory.
- Returns
- a pointer to the first location of the shated memory.
◆ getUsageCount()
Int ESharedMemory::getUsageCount |
( |
| ) |
|
Retrieves the number of clients accessing the shared memory.
◆ init()
Void ESharedMemory::init |
( |
cpStr |
file, |
|
|
Int |
id, |
|
|
Int |
size |
|
) |
| |
Initializes this shared memory object. This method is called by the parameterized constructor.
- Parameters
-
file | the file name associated with the shared memory. |
id | the identifier for the shared memory. |
size | the amount of memory to allocate for this shared memory object. |
◆ onDestroy()
virtual Void ESharedMemory::onDestroy |
( |
| ) |
|
|
inlinevirtual |
Called when teh shared memory is destroyed.
The documentation for this class was generated from the following files:
- /home/vagrant/share/code/epctools/include/epc/eshmem.h
- /home/vagrant/share/code/epctools/src/eshmem.cpp