Pothos
0.4.1-gb758ed46
The Pothos dataflow programming software suite
|
#include <FileLock.hpp>
Public Member Functions | |
FileLock (const std::string &filePath) | |
~FileLock (void) | |
void | lock (void) |
Perform lock operation. More... | |
void | unlock (void) |
Perform unlock operation. More... | |
FileLock implements a portable file locking for use with std::lock_guard. Poco didn't provide a file lock implementation at the time of writing; this implementation uses flock() on Unix and LockFileEx() on Windows.
Pothos::Util::FileLock::FileLock | ( | const std::string & | filePath | ) |
Create a file lock object. This does not acquire the lock.
Pothos::Util::FileLock::~FileLock | ( | void | ) |
Destroy a file lock object. Release the file lock if acquired.
void Pothos::Util::FileLock::lock | ( | void | ) |
Perform lock operation.
void Pothos::Util::FileLock::unlock | ( | void | ) |
Perform unlock operation.