diff options
author | kalabukdima <kalabukdima@yandex-team.ru> | 2022-02-10 16:51:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:41 +0300 |
commit | b688e76378935ca7132292872a1dc37ba410e3ec (patch) | |
tree | d633459d4077e98bb1a9908e6e406504e687fa17 /util/memory/blob.h | |
parent | d4833e6d53fab98fa55ca3aca3ac5adf038b2a61 (diff) | |
download | ydb-b688e76378935ca7132292872a1dc37ba410e3ec.tar.gz |
Restoring authorship annotation for <kalabukdima@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory/blob.h')
-rw-r--r-- | util/memory/blob.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h index 20c02a68df..272925397c 100644 --- a/util/memory/blob.h +++ b/util/memory/blob.h @@ -10,15 +10,15 @@ class IInputStream; class TFile; class TBuffer; -enum class EMappingMode { - /// Just mmap a file allowing lazy page loading at access - Standard, - /// Same as previous but warmup the buffer with sequential access to it's data - Precharged, - /// Try to lock file in memory so that it doesn't wash away. See mlock(2) - Locked -}; - +enum class EMappingMode { + /// Just mmap a file allowing lazy page loading at access + Standard, + /// Same as previous but warmup the buffer with sequential access to it's data + Precharged, + /// Try to lock file in memory so that it doesn't wash away. See mlock(2) + Locked +}; + /// @addtogroup BLOBs /// @{ class TBlob { @@ -201,18 +201,18 @@ public: static TBlob NoCopy(const void* data, size_t length); /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data. - static TBlob FromFileSingleThreaded(const TString& path, EMappingMode); - - /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data. - static TBlob FromFile(const TString& path, EMappingMode); - - /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data. - static TBlob FromFileSingleThreaded(const TFile& file, EMappingMode); - - /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data. - static TBlob FromFile(const TFile& file, EMappingMode); - - /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data. + static TBlob FromFileSingleThreaded(const TString& path, EMappingMode); + + /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data. + static TBlob FromFile(const TString& path, EMappingMode); + + /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data. + static TBlob FromFileSingleThreaded(const TFile& file, EMappingMode); + + /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data. + static TBlob FromFile(const TFile& file, EMappingMode); + + /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data. static TBlob FromFileSingleThreaded(const TString& path); /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data. |