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

Method destroy

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

Source from the content-addressed store, hash-verified

309 static bool isNull() { return s_singleton == nullptr; }
310
311 static void destroy() {
312 assert(!s_singleton || s_singleton == (T*)&s_storage);
313 T* p = s_singleton;
314 if (p) {
315 T::Delete(p);
316 s_singleton = nullptr;
317 }
318 }
319
320 T *operator->() const {
321 return getNoCheck();

Callers

nothing calls this directly

Calls 2

assertFunction · 0.85
ThreadLocalSetValueFunction · 0.85

Tested by

no test coverage detected