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

Function AtomicAdd

library/cpp/lfalloc/lf_allocX64.h:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using TAtomic = volatile long;
35
36static inline long AtomicAdd(TAtomic& a, long b) {
37 return _InterlockedExchangeAdd(&a, b) + b;
38}
39
40static inline long AtomicSub(TAtomic& a, long b) {
41 return AtomicAdd(a, -b);

Callers 15

AtomicSubFunction · 0.70
LargeBlockAllocFunction · 0.70
FreeAllLargeBlockMemFunction · 0.70
LargeBlockFreeFunction · 0.70
FreeMethod · 0.70
AllocMethod · 0.70
ReturnWholeListMethod · 0.70
FlushMethod · 0.70
AllocMethod · 0.70
FlushMethod · 0.70
IncrementCounterFunction · 0.70
GetTransferIdFunction · 0.50

Calls

no outgoing calls

Tested by 4