fallback generator can run a single job per compute call

This commit is contained in:
v4hn 2021-09-02 20:14:00 +02:00
parent 8719b1c3d6
commit 3d5cecd753

View File

@ -883,12 +883,8 @@ void FallbacksPrivate::computeGenerate() {
if(current_generator_ == children().end()) if(current_generator_ == children().end())
return; return;
// run ALL possible computations (on new state)
// this is needed to decide whether it should be passed to the next child too
while ((*current_generator_)->pimpl()->canCompute()){
(*current_generator_)->pimpl()->runCompute(); (*current_generator_)->pimpl()->runCompute();
} }
}
template <typename Interface::Direction dir> template <typename Interface::Direction dir>
void FallbacksPrivate::onNewExternalState(Interface::iterator external, bool updated) { void FallbacksPrivate::onNewExternalState(Interface::iterator external, bool updated) {