mirror of https://github.com/KLayout/klayout.git
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:
parent
5a1a89b665
commit
7d2bf2d969
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue