MCPcopy Create free account
hub / github.com/beefytech/Beef / GetCache

Method GetCache

BeefRT/gperftools/src/thread_cache.h:427–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427inline ThreadCache* ThreadCache::GetCache() {
428 ThreadCache* ptr = NULL;
429 if (!tsd_inited_) {
430 InitModule();
431 } else {
432 ptr = GetThreadHeap();
433 }
434 if (ptr == NULL) ptr = CreateCacheIfNecessary();
435 return ptr;
436}
437
438// In deletion paths, we do not try to create a thread-cache. This is
439// because we may be in the thread destruction code and may have

Callers

nothing calls this directly

Calls 1

InitModuleFunction · 0.70

Tested by

no test coverage detected