7#ifndef INTERPROCESS_SYNC_FILE_H
8#define INTERPROCESS_SYNC_FILE_H
76 bool do_lock(
int cmd,
short l_type);
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
InterprocessSyncFileError(const char *file, size_t line, const char *what)
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)
InterprocessSync(const std::string &task_name)
Constructor.
Defines the logger used by the top-level component of kea-lfc.