diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2017-12-26 19:41:55 +1300 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2018-01-16 19:05:46 +1300 |
commit | 2f3bd47d44634cfc0a4261e64af178407ce2869c (patch) | |
tree | a604dd3608644a7cc968253bde02cbedbd30d916 /src/util.h | |
parent | 5260a4aca1e6c11e1dbca9d3390c0dc739e81204 (diff) |
Abstract directory locking into util.cpp
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 6a0d6a31e7..277b4c66af 100644 --- a/src/util.h +++ b/src/util.h @@ -173,6 +173,7 @@ bool TruncateFile(FILE *file, unsigned int length); int RaiseFileDescriptorLimit(int nMinFD); void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length); bool RenameOver(fs::path src, fs::path dest); +bool LockDirectory(const fs::path& directory, const std::string lockfile_name, bool probe_only=false); bool TryCreateDirectories(const fs::path& p); fs::path GetDefaultDataDir(); const fs::path &GetDataDir(bool fNetSpecific = true); |