MCPcopy Create free account
hub / github.com/catboost/catboost / Increment

Method Increment

library/cpp/lfalloc/lf_allocX64.h:1020–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018 }
1019
1020 Y_FORCE_INLINE void Increment(size_t value) {
1021 Value += value;
1022 if (++Updates > MAX_LOCAL_UPDATES || Value > MAX_LOCAL_DELTA) {
1023 Flush();
1024 }
1025 }
1026
1027 Y_FORCE_INLINE void Flush() {
1028 AtomicAdd(*Parent, Value);

Callers 1

IncrementCounterFunction · 0.45

Calls 1

FlushFunction · 0.50

Tested by

no test coverage detected