Pothos  0.3.3-g32d3017c
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
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: