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