MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / runNextProcess

Method runNextProcess

src/openms_gui/source/VISUAL/TOPPASScene.cpp:1999–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

runMethod · 0.80

Calls 3

emitToolStartedMethod · 0.80
emptyMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected