mirror of https://github.com/KLayout/klayout.git
Releasing the lock when the iterator is at end - otherwise a finished iterator could still block the layout (potential Ruby GC issue)
This commit is contained in:
parent
c1757c472e
commit
bea707a9df
|
|
@ -695,6 +695,12 @@ RecursiveShapeIterator::next (RecursiveShapeReceiver *receiver)
|
|||
next_shape (receiver);
|
||||
}
|
||||
|
||||
if (at_end ()) {
|
||||
// release the layout lock if at end - this way, the shape iterator can be
|
||||
// held further, without blocking the layout.
|
||||
m_locker = db::LayoutLocker ();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue