Lines Matching refs:oldRoot
338 SharedContextMutex *oldRoot = otherLockedRoot; in Merge() local
341 if (oldRoot->mRank > newRoot->mRank) in Merge()
343 std::swap(oldRoot, newRoot); in Merge()
345 else if (oldRoot->mRank == newRoot->mRank) in Merge()
351 for (SharedContextMutex *const leaf : oldRoot->mLeaves) in Merge()
353 ASSERT(leaf->getRoot() == oldRoot); in Merge()
356 oldRoot->mLeaves.clear(); in Merge()
357 oldRoot->setNewRoot(newRoot); in Merge()
360 oldRoot->doUnlock(); in Merge()
363 while (oldRoot->mLockLevel > 0) in Merge()
366 oldRoot->doUnlock(); in Merge()
373 SharedContextMutex *const oldRoot = getRoot(); in setNewRoot() local
375 ASSERT(newRoot != oldRoot); in setNewRoot()
381 if (oldRoot != this) in setNewRoot()
383 mOldRoots.emplace_back(oldRoot); in setNewRoot()
424 for (SharedContextMutex *oldRoot : mOldRoots) in onDestroy()
426 ASSERT(oldRoot->getRoot() == root); in onDestroy()
427 ASSERT(oldRoot->mLeaves.empty()); in onDestroy()
428 oldRoot->release(); in onDestroy()