aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lfalloc
diff options
context:
space:
mode:
authorbreakneck <breakneck@yandex-team.ru>2022-02-10 16:47:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:58 +0300
commitf860932520ce9bc8540a3c19e84c0109c3437dc5 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/lfalloc
parente2021f9a0e54d13b7c48796318b13b66dc625e74 (diff)
downloadydb-f860932520ce9bc8540a3c19e84c0109c3437dc5.tar.gz
Restoring authorship annotation for <breakneck@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/lfalloc')
-rw-r--r--library/cpp/lfalloc/lf_allocX64.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/lfalloc/lf_allocX64.h b/library/cpp/lfalloc/lf_allocX64.h
index 613cb8dab3..fd2a906d6f 100644
--- a/library/cpp/lfalloc/lf_allocX64.h
+++ b/library/cpp/lfalloc/lf_allocX64.h
@@ -29,7 +29,7 @@
#define PERTHREAD __declspec(thread)
#define _win_
-#define Y_FORCE_INLINE __forceinline
+#define Y_FORCE_INLINE __forceinline
using TAtomic = volatile long;
@@ -293,7 +293,7 @@ enum ELFAllocCounter {
CT_MAX
};
-static Y_FORCE_INLINE void IncrementCounter(ELFAllocCounter counter, size_t value);
+static Y_FORCE_INLINE void IncrementCounter(ELFAllocCounter counter, size_t value);
//////////////////////////////////////////////////////////////////////////
enum EMMapMode {
@@ -1011,20 +1011,20 @@ struct TLocalCounter {
int Updates;
TAtomic* Parent;
- Y_FORCE_INLINE void Init(TAtomic* parent) {
+ Y_FORCE_INLINE void Init(TAtomic* parent) {
Parent = parent;
Value = 0;
Updates = 0;
}
- Y_FORCE_INLINE void Increment(size_t value) {
+ Y_FORCE_INLINE void Increment(size_t value) {
Value += value;
if (++Updates > MAX_LOCAL_UPDATES || Value > MAX_LOCAL_DELTA) {
Flush();
}
}
- Y_FORCE_INLINE void Flush() {
+ Y_FORCE_INLINE void Flush() {
AtomicAdd(*Parent, Value);
Value = 0;
Updates = 0;