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

Function Instance

util/system/atexit.cpp:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 static inline TAtExit* Instance() {
100 if (TAtExit* const atExit = atExitPtr.load(std::memory_order_acquire)) {
101 return atExit;
102 }
103 with_lock (atExitLock) {
104 if (TAtExit* const atExit = atExitPtr.load()) {
105 return atExit;
106 }
107 atexit(OnExit);
108 TAtExit* const atExit = new (atExitMem) TAtExit;
109 atExitPtr.store(atExit, std::memory_order_release);
110 return atExit;
111 }
112 }
113} // namespace
114
115void ManualRunAtExitFinalizers() {

Callers 15

DispatchOutFnFunction · 0.85
DispatchToStringBufFnFunction · 0.85
DispatchFromStringImplFnFunction · 0.85
RegisterSymbolMethod · 0.85
ForEachSymbolMethod · 0.85
TBigArrayMethod · 0.85
TIndexedArrayMethod · 0.85
Y_UNIT_TESTFunction · 0.85
BuildInputChainMethod · 0.85
BestCompressionSchemeMethod · 0.85
RebuildStreamMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by 5

TestMemPoolMethod · 0.68
TestAlignMethod · 0.68
TestErrorMethod · 0.68
TestAllocateMethod · 0.68