Make sure std::unique_ptr gets initialized.

(Fixes unit test failure.)
This commit is contained in:
Jeff Young 2023-01-11 18:28:14 +00:00
parent 096cc7a5ad
commit 8238973bf4
1 changed files with 5 additions and 0 deletions

View File

@ -252,6 +252,11 @@ void BOARD::IncrementTimeStamp()
m_CopperZoneRTreeCache.clear();
m_CopperItemRTreeCache = std::make_unique<DRC_RTREE>();
}
else if( !m_CopperItemRTreeCache )
{
std::unique_lock<std::mutex> cacheLock( m_CachesMutex );
m_CopperItemRTreeCache = std::make_unique<DRC_RTREE>();
}
}