19 #include <uuid/console.h>
29 static std::set<std::shared_ptr<Shell>> shells;
37 for (
auto shell = shells.begin(); shell != shells.end(); ) {
38 shell->get()->loop_one();
41 if (!shell->get()->running()) {
42 shell = shells.erase(shell);
static std::set< std::shared_ptr< Shell > > & registered_shells()
Get registered running shells to be executed.
static void loop_all()
Loop through all registered shell objects.