Maybe fixed a performance issue (layout object needs to be locked)

This commit is contained in:
Matthias Koefferlein 2020-06-05 00:34:07 +02:00
parent 233574598b
commit 339a2a6fd7
2 changed files with 4 additions and 2 deletions

View File

@ -1210,6 +1210,8 @@ DEFImporter::read_components (std::list<std::pair<std::string, CellInstArray> >
void
DEFImporter::do_read (db::Layout &layout)
{
db::LayoutLocker locker (&layout);
double dbu_mic = 1000.0;
double scale = 1.0 / (dbu_mic * layout.dbu ());
@ -1405,8 +1407,6 @@ DEFImporter::do_read (db::Layout &layout)
if (! groups.empty () && options ().separate_groups ()) {
db::LayoutLocker locker (&layout);
others_cell = &layout.cell (layout.add_cell ("NOGROUP"));
design.insert (db::CellInstArray (others_cell->cell_index (), db::Trans ()));

View File

@ -941,6 +941,8 @@ LEFImporter::read_macro (Layout &layout)
void
LEFImporter::do_read (db::Layout &layout)
{
db::LayoutLocker locker (&layout);
// TODO: what to do with that value?
// double dbu_mic = 1000;