|
B2BITS FIX Antenna HFT
1.0.17
|
Class which creates and destroys on exit locked file. More...
#include <LockedFile.h>
Public Member Functions | |
| LockedFile (const std::string &name) | |
| Constructor. More... | |
| ~LockedFile () | |
| Closes lock file. More... | |
Protected Attributes | |
| int | fd_ |
| File descriptior. More... | |
Class which creates and destroys on exit locked file.
| System::LockedFile::LockedFile | ( | const std::string & | name | ) |
Constructor.
Creates blocked file.
| name | Full path. |
| Utils::Exception | if class cannot be created. Normally this means that such lock is already created and can be treated as attepmt to start another application instance. |
| System::LockedFile::~LockedFile | ( | ) |
Closes lock file.
|
protected |
File descriptior.
1.8.5