Create a "lock file", removing it upon class destruction. More...
Public Member Functions | |
LockFile (std::string path) | |
Create a lock file with the given path. | |
~LockFile () | |
LockFile Destructor, removes the lock file. | |
Static Public Member Functions | |
static bool | IsLocked (std::string path) |
Check if the given lock file exists. |
Create a "lock file", removing it upon class destruction.
Definition at line 42 of file routing_master.cc.
LockFile::LockFile | ( | std::string | path | ) | [inline, explicit] |
Create a lock file with the given path.
path | Path to lock file |
Definition at line 49 of file routing_master.cc.
static bool LockFile::IsLocked | ( | std::string | path | ) | [inline, static] |
Check if the given lock file exists.
path | Path to lock file |
Definition at line 67 of file routing_master.cc.