aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/memory_log/memlog.h
diff options
context:
space:
mode:
authorasorotsky <asorotsky@yandex-team.ru>2022-02-10 16:47:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:33 +0300
commiteb540cc7a103419462d0cc870ca403966e2194c6 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/actors/memory_log/memlog.h
parent80f0a6b4102e3b2c89f23935c7690409033ea24c (diff)
downloadydb-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.h12
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 {