| 425 | } |
| 426 | |
| 427 | inline 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 |
nothing calls this directly
no test coverage detected