diff options
author | asorotsky <asorotsky@yandex-team.ru> | 2022-02-10 16:47:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:33 +0300 |
commit | eb540cc7a103419462d0cc870ca403966e2194c6 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/actors/memory_log/memlog.h | |
parent | 80f0a6b4102e3b2c89f23935c7690409033ea24c (diff) | |
download | ydb-eb540cc7a103419462d0cc870ca403966e2194c6.tar.gz |
Restoring authorship annotation for <asorotsky@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/actors/memory_log/memlog.h')
-rw-r--r-- | library/cpp/actors/memory_log/memlog.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/actors/memory_log/memlog.h b/library/cpp/actors/memory_log/memlog.h index a16d694ba2..2aa27272a6 100644 --- a/library/cpp/actors/memory_log/memlog.h +++ b/library/cpp/actors/memory_log/memlog.h @@ -45,7 +45,7 @@ public: return AtomicGet(MemLogBuffer); } - void* GetWriteBuffer(size_t amount) noexcept; + void* GetWriteBuffer(size_t amount) noexcept; inline static void* GetWriteBufferStatic(size_t amount) noexcept { auto logger = GetMemoryLogger(); @@ -62,7 +62,7 @@ public: inline static void CreateMemoryLogBuffer( size_t totalSize = DEFAULT_TOTAL_SIZE, size_t grainSize = DEFAULT_GRAIN_SIZE) - Y_COLD { + Y_COLD { if (AtomicGet(MemLogBuffer) != nullptr) { return; } @@ -73,7 +73,7 @@ public: static std::atomic<bool> PrintLastMark; // buffer must be at least 16 bytes - static void ChangeLastMark(char* buffer) noexcept; + static void ChangeLastMark(char* buffer) noexcept; inline static TThread::TId GetTheadId() noexcept { if (LogThreadId == 0) { @@ -83,7 +83,7 @@ public: } private: - TMemoryLog(size_t totalSize, size_t grainSize) Y_COLD; + TMemoryLog(size_t totalSize, size_t grainSize) Y_COLD; struct TGrain { TAtomic WritePointer = 0; @@ -170,12 +170,12 @@ private: // it's no use of sanitizing this function NO_SANITIZE_THREAD -char* BareMemLogWrite( +char* BareMemLogWrite( const char* begin, size_t msgSize, bool isLast = true) noexcept; // it's no use of sanitizing this function NO_SANITIZE_THREAD -bool MemLogWrite( +bool MemLogWrite( const char* begin, size_t msgSize, bool addLF = false) noexcept; Y_WRAPPER inline bool MemLogWrite(const char* begin, const char* end) noexcept { |