Pothos  0.4.1-gb758ed46
The Pothos dataflow programming software suite
Public Member Functions | List of all members
Pothos::Util::FileLock Class Reference

#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...
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

void Pothos::Util::FileLock::lock ( void  )

Perform lock operation.

void Pothos::Util::FileLock::unlock ( void  )

Perform unlock operation.


The documentation for this class was generated from the following file: