POSIX shared memory segment.
More...
#include <Segment.h>
|
| | Segment (const char *const id) |
| | Create a shared memory segment. More...
|
| |
| | ~Segment () |
| |
| void | create (const off_t aSize) |
| | Create a new shared memory segment. Unlinks the segment on destruction. More...
|
| |
| void | open (const bool unlinkWhenDone) |
| |
| void * | reserve (size_t chunkSize) |
| | reserve and return the next chunk More...
|
| |
|
| static bool | Enabled () |
| | Whether shared memory support is available. More...
|
| |
| static SBuf | Name (const SBuf &prefix, const char *suffix) |
| | concatenates parts of a name to form a complete name (or its prefix) More...
|
| |
|
| static const char * | BasePath = DEFAULT_STATEDIR |
| | common path of all segment names in path-based environments More...
|
| |
Definition at line 23 of file Segment.h.
◆ Segment() [1/2]
| Ipc::Mem::Segment::Segment |
( |
const char *const |
id | ) |
|
◆ ~Segment()
| Ipc::Mem::Segment::~Segment |
( |
| ) |
|
◆ Segment() [2/2]
| Ipc::Mem::Segment::Segment |
( |
const Segment & |
| ) |
|
|
private |
◆ checkSupport()
| void Ipc::Mem::Segment::checkSupport |
( |
const char *const |
context | ) |
|
|
private |
◆ create()
| void Ipc::Mem::Segment::create |
( |
const off_t |
aSize | ) |
|
◆ Enabled()
| bool Ipc::Mem::Segment::Enabled |
( |
| ) |
|
|
static |
◆ Name()
| SBuf Ipc::Mem::Segment::Name |
( |
const SBuf & |
prefix, |
|
|
const char * |
suffix |
|
) |
| |
|
static |
◆ open()
| void Ipc::Mem::Segment::open |
( |
const bool |
unlinkWhenDone | ) |
|
◆ operator=()
◆ reserve()
| void * Ipc::Mem::Segment::reserve |
( |
size_t |
chunkSize | ) |
|
◆ BasePath
| const char * Ipc::Mem::Segment::BasePath = DEFAULT_STATEDIR |
|
static |
◆ doUnlink
| bool Ipc::Mem::Segment::doUnlink |
|
private |
◆ theMem
| void* Ipc::Mem::Segment::theMem |
|
private |
◆ theName
| const String Ipc::Mem::Segment::theName |
|
private |
◆ theReserved
| off_t Ipc::Mem::Segment::theReserved |
|
private |
◆ theSize
| off_t Ipc::Mem::Segment::theSize |
|
private |
The documentation for this class was generated from the following files: