| 1997 | } |
| 1998 | |
| 1999 | void TOPPASScene::runNextProcess() |
| 2000 | { |
| 2001 | static bool used = false; |
| 2002 | if (used) |
| 2003 | return; |
| 2004 | |
| 2005 | used = true; |
| 2006 | |
| 2007 | while (!topp_processes_queue_.empty() && threads_active_ < allowed_threads_) |
| 2008 | { |
| 2009 | ++threads_active_; // will be decreased, once the tool finishes |
| 2010 | TOPPProcess tp = topp_processes_queue_.first(); |
| 2011 | topp_processes_queue_.pop_front(); |
| 2012 | FakeProcess* p = qobject_cast<FakeProcess*>(tp.proc); |
| 2013 | if (p) |
| 2014 | { |
| 2015 | p->start(tp.command, tp.args); |
| 2016 | } |
| 2017 | else |
| 2018 | { |
| 2019 | tp.tv->emitToolStarted(); |
| 2020 | tp.proc->start(tp.command, tp.args); |
| 2021 | } |
| 2022 | } |
| 2023 | used = false; |
| 2024 | |
| 2025 | checkIfWeAreDone(); |
| 2026 | } |
| 2027 | |
| 2028 | bool TOPPASScene::sanityCheck_(bool allowUserOverride) |
| 2029 | { |
no test coverage detected