aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file_lock.h
diff options
context:
space:
mode:
authormvel <mvel@yandex-team.ru>2022-02-10 16:45:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:41 +0300
commit43f5a35593ebc9f6bcea619bb170394ea7ae468e (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /util/system/file_lock.h
parentbd30392c4cc92487950adc375c07adf52da1d592 (diff)
downloadydb-43f5a35593ebc9f6bcea619bb170394ea7ae468e.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/file_lock.h')
-rw-r--r--util/system/file_lock.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/file_lock.h b/util/system/file_lock.h
index ac3f95306f..b2aaff5baf 100644
--- a/util/system/file_lock.h
+++ b/util/system/file_lock.h
@@ -1,9 +1,9 @@
-#pragma once
-
+#pragma once
+
#include <util/generic/fwd.h>
-#include <util/generic/noncopyable.h>
+#include <util/generic/noncopyable.h>
#include <util/system/file.h>
-
+
enum class EFileLockType {
Exclusive,
Shared
@@ -13,9 +13,9 @@ class TFileLock: public TFile {
public:
TFileLock(const TString& filename, const EFileLockType type = EFileLockType::Exclusive);
- void Acquire();
+ void Acquire();
bool TryAcquire();
- void Release();
+ void Release();
inline void lock() {
Acquire();
@@ -31,4 +31,4 @@ public:
private:
EFileLockType Type;
-};
+};