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

Method MyStorage

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

Source from the content-addressed store, hash-verified

97 };
98
99 inline TPerThreadStorage* MyStorage() {
100#if defined(Y_HAVE_FAST_POD_TLS)
101 Y_POD_STATIC_THREAD(TPerThreadStorage*)
102 my(nullptr);
103
104 if (!my) {
105 my = MyStorageSlow();
106 }
107
108 return my;
109#else
110 return MyStorageSlow();
111#endif
112 }
113
114 virtual TPerThreadStorage* MyStorageSlow() = 0;
115

Callers 2

GetMethod · 0.80
SetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected