diff options
| author | MeshCollider <[email protected]> | 2017-12-26 19:41:55 +1300 |
|---|---|---|
| committer | MeshCollider <[email protected]> | 2018-01-16 19:05:46 +1300 |
| commit | 2f3bd47d44634cfc0a4261e64af178407ce2869c (patch) | |
| tree | a604dd3608644a7cc968253bde02cbedbd30d916 /src/util.h | |
| parent | Make .walletlock distinct from .lock (diff) | |
| download | discoin-2f3bd47d44634cfc0a4261e64af178407ce2869c.tar.xz discoin-2f3bd47d44634cfc0a4261e64af178407ce2869c.zip | |
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 6a0d6a31e..277b4c66a 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); |