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