7#ifndef INTERPROCESS_SYNC_H
8#define INTERPROCESS_SYNC_H
14namespace interprocess {
16class InterprocessSyncLocker;
Interprocess Sync Locker Class.
~InterprocessSyncLocker()
Destructor.
bool unlock()
Release the lock.
bool isLocked() const
Check if the lock is taken.
bool lock()
Acquire the lock (blocks if something else has acquired a lock on the same task name)
bool tryLock()
Try to acquire a lock (doesn't block)
InterprocessSyncLocker(InterprocessSync &sync)
Constructor.
InterprocessSync & sync_
Ref to underlying sync object.
virtual bool unlock()=0
Release the lock.
bool is_locked_
Is the lock taken?
InterprocessSync(const std::string &task_name)
Constructor.
virtual bool lock()=0
Acquire the lock (blocks if something else has acquired a lock on the same task name)
const std::string task_name_
The task name.
virtual bool tryLock()=0
Try to acquire a lock (doesn't block)
virtual ~InterprocessSync()
Destructor.
Defines the logger used by the top-level component of kea-lfc.