MCPcopy Create free account
hub / github.com/facebook/react / get

Method get

scripts/perf-counters/src/thread-local.h:193–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191template<typename T>
192struct ThreadLocal {
193 T *get() const {
194 if (m_node.m_p == nullptr) {
195 const_cast<ThreadLocal<T>*>(this)->create();
196 }
197 return m_node.m_p;
198 }
199
200 NEVER_INLINE void create();
201

Callers

nothing calls this directly

Calls 3

ThreadLocalSetValueFunction · 0.85
createMethod · 0.65

Tested by

no test coverage detected