mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 11:31:08 +02:00
tl::DeferredMethod: allow new method calls from inside
This change will allow issuing the same method from inside itself (postpone execution by re-issuing).
This commit is contained in:
@@ -152,8 +152,8 @@ DeferredMethodScheduler::do_execute ()
|
||||
// do the execution outside the locked range to avoid deadlocks if the method's execution
|
||||
// schedules another call.
|
||||
for (std::list<DeferredMethodBase *>::iterator m = methods.begin (); m != methods.end (); ++m) {
|
||||
(*m)->execute ();
|
||||
(*m)->m_scheduled = false;
|
||||
(*m)->execute ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user