- // This is a little tricky - it's possible that our IntCaches are still alive
- // in another thread and will get destroyed after this destructor runs, so we
- // need to make sure we signal that this parent is dead.
- ~ThreadCachedInt() {
- for (auto& cache : cache_.accessAllThreads()) {
- cache.parent_ = nullptr;
- }
- }
-