Class shared_memory::Mutex¶
-
class shared_memory::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)¶
-
Mutex(std::string mutex_id, bool clean_memory_on_destruction = true)¶