CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
41 explicit FileLock(
const std::string& lockFilePath);
void lock()
Blocks until a lock can be obtained for the current execution agent.
Definition: FileLock.cpp:100
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
def warning(*args)
Definition: colorPrint.py:10
utils::SpinLock m_spinLock
Definition: FileLock.h:58
std::string m_lockFilePath
Definition: FileLock.h:57
Lock based on an underlying lock file.
Definition: FileLock.h:29
FileLock::FdType FdType
Definition: FileLock.cpp:35
bool try_lock()
Attempts to acquire the lock for the current execution agent without blocking.
Definition: SpinLock.h:46
~FileLock()
Releases the lock file.
Definition: FileLock.cpp:96
void unlock() noexcept
Releases the lock held by the execution agent. Throws no exceptions.
Definition: SpinLock.h:51
int FdType
Definition: FileLock.h:36
FdType m_fd
Definition: FileLock.h:59
bool try_lock()
Attempts to acquire the lock for the current execution agent without blocking.
Definition: FileLock.cpp:105
Definition: AddressExtractionExtension.cpp:28
A class that can neither be copied nor moved.
Definition: NonCopyable.h:26
void unlock() noexcept
Releases the lock held by the execution agent. Throws no exceptions.
Definition: FileLock.cpp:114
std::lock_guard< SpinLock > SpinLockGuard
A spin lock guard.
Definition: SpinLock.h:60
FileLock(const std::string &lockFilePath)
Creates a lock file with path lockFilePath.
Definition: FileLock.cpp:91