aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file_lock.h
diff options
context:
space:
mode:
authordeshevoy <deshevoy@yandex-team.ru>2022-02-10 16:46:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:57 +0300
commit28148f76dbfcc644d96427d41c92f36cbf2fdc6e (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /util/system/file_lock.h
parente988f30484abe5fdeedcc7a5d3c226c01a21800c (diff)
downloadydb-28148f76dbfcc644d96427d41c92f36cbf2fdc6e.tar.gz
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/file_lock.h')
-rw-r--r--util/system/file_lock.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/system/file_lock.h b/util/system/file_lock.h
index 294696e5fe..b2aaff5baf 100644
--- a/util/system/file_lock.h
+++ b/util/system/file_lock.h
@@ -17,18 +17,18 @@ public:
bool TryAcquire();
void Release();
- inline void lock() {
- Acquire();
- }
-
- inline bool try_lock() {
- return TryAcquire();
- }
-
- inline void unlock() {
- Release();
- }
-
+ inline void lock() {
+ Acquire();
+ }
+
+ inline bool try_lock() {
+ return TryAcquire();
+ }
+
+ inline void unlock() {
+ Release();
+ }
+
private:
EFileLockType Type;
};