All templated types in this namespaces are elementary types: int, double, float, char*, …
Typedefs
-
typedef boost::interprocess::named_mutex SHMMutex
-
class Mutex
-
Public Functions
-
Mutex(std::string mutex_id, bool clean_memory_on_destruction = true)
A Mutex accessible to several processes via the shared memory The mutex is cleaned from the shared memory on destruction if clean_memory_on_destruction is true (the default)
-
~Mutex()
-
void lock()
lock the mutex
-
void unlock()
unlock the mutex
Public Static Functions
-
static void clean(std::string mutex_id)
Private Members
-
friend Lock
-
std::string mutex_id_
-
SHMMutex mutex_
-
bool clean_memory_on_destruction_