File array.cpp

namespace shared_memory

All templated types in this namespaces are elementary types: int, double, float, char*, …

Functions

void clear_array(std::string segment_id)

wipe the shared memory segment created by an instance of shared_memory::array, including mutexes, if any.

If there are no memory segment of this id, there will be no effect. If shared_memory::array instances are pointing to the wiped out segment, their get and set functions may hang indefinitely.