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)

Private Members

friend Lock
std::string mutex_id_
SHMMutex mutex_
bool clean_memory_on_destruction_