Image Component Library (ICL)
|
This is used to register all created SharedMemorySegments. More...
#include <SharedMemorySegment.h>
Static Public Member Functions | |
static std::set< std::string > | getSegmentSet () |
Returns a set of the currently registered SharedMemorySegments. | |
static void | freeSegment (std::string name) |
Linux only. When a SharedMemory was not released correctly this can help. | |
static void | freeAllSegments () |
calls freeSegment() on all registered SharedMemorySegments | |
static void | resetBus () |
Linux only. Releases all SharedMemorySegments and SystemSemaphores. | |
Static Private Member Functions | |
static void | addSegment (std::string name) |
Adds a segment name to the register. | |
static void | removeSegment (std::string name) |
Removes a segment name to the register. | |
Friends | |
struct | SharedMemorySegment::Impl |
This is used to register all created SharedMemorySegments.
Each SharedMemorySegment::Impl instance adds its segment name to the register on creation and removes it on destruction.
static void icl::io::SharedMemorySegmentRegister::addSegment | ( | std::string | name | ) | [static, private] |
Adds a segment name to the register.
static void icl::io::SharedMemorySegmentRegister::freeAllSegments | ( | ) | [static] |
calls freeSegment() on all registered SharedMemorySegments
static void icl::io::SharedMemorySegmentRegister::freeSegment | ( | std::string | name | ) | [static] |
Linux only. When a SharedMemory was not released correctly this can help.
Attaches and detatches the Segment identified by 'name'. When no other instances are connected. This will free the system memory segment.
static std::set<std::string> icl::io::SharedMemorySegmentRegister::getSegmentSet | ( | ) | [static] |
Returns a set of the currently registered SharedMemorySegments.
static void icl::io::SharedMemorySegmentRegister::removeSegment | ( | std::string | name | ) | [static, private] |
Removes a segment name to the register.
static void icl::io::SharedMemorySegmentRegister::resetBus | ( | ) | [static] |
Linux only. Releases all SharedMemorySegments and SystemSemaphores.
All SharedMemorySegments and SystemSemaphores starting with adress '0x51' will be freed by force. This is the last resource when something realy bad happened.
friend struct SharedMemorySegment::Impl [friend] |