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
commitbd30392c4cc92487950adc375c07adf52da1d592 (patch)
treee8d1a3f19b7fc890bcef6e4cc5de41f1d88c9ac3 /util/system/file_lock.h
parent5d50718e66d9c037dc587a0211110b7d25a66185 (diff)
downloadydb-bd30392c4cc92487950adc375c07adf52da1d592.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 1 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 b2aaff5baf..ac3f95306f 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;
-};
+};