7#ifndef INTERPROCESS_SYNC_FILE_H
8#define INTERPROCESS_SYNC_FILE_H
15namespace interprocess {
76 bool do_lock(
int cmd,
short l_type);
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
InterprocessSyncFileError.
InterprocessSyncFileError(const char *file, size_t line, const char *what)
File-based Interprocess Sync Class.
bool unlock()
Release the lock.
InterprocessSyncFile(const std::string &task_name)
Constructor.
bool lock()
Acquire the lock (blocks if something else has acquired a lock on the same task name)
virtual ~InterprocessSyncFile()
Destructor.
bool tryLock()
Try to acquire a lock (doesn't block)
Defines the logger used by the top-level component of kea-lfc.