51{
52 std::shared_ptr<RuntimeContext> context = nullptr;
53
55
56 bool failed = false;
57 while((context =
pop()) !=
nullptr) {
61 }
62
65
67 return false;
68
70 context->dispatch();
71
76 }
77 }
78
81 }
82
87 }
88 }
91 }
92
94 failed = true;
95 break;
96 }
97 }
98
99 } else if (context->run() == false) {
100 failed = true;
101 break;
102 }
103 }
104
106
107 if (failed == true) {
109 return false;
110 }
111
113
114 return true;
115}
bool failed()
Definition: System.hpp:537
bool start()
Definition: System.hpp:480
bool completed()
Definition: System.hpp:526
runtime_routine_chain_status get_status()
Definition: System.hpp:548
virtual std::shared_ptr< RuntimeContext > pop()
Definition: System.hpp:559
runtime_module_type get_module_type()
Definition: System.hpp:589
@ RUNTIME_CONTEXT_FAIL
Definition: System.hpp:108
@ RUNTIME_CONTEXT_NO_STATE
Definition: System.hpp:107
@ RUNTIME_CONTEXT_STATE_ACTIVE
Definition: System.hpp:115
@ RUNTIME_CONTEXT_STATE_WAITING
Definition: System.hpp:116
@ RUNTIME_ROUTINE_CHAIN_CANCELLED
Definition: System.hpp:58
@ RUNTIME_ROUTINE_CHAIN_PAUSED
Definition: System.hpp:56
@ RUNTIME_ROUTINE_CHAIN_STOPPED
Definition: System.hpp:54
@ RUNTIME_SYNC_WAIT_CHECK_STATE
Definition: System.hpp:100
@ RUNTIME_SYNC_WAIT_NO_CHECK_STATE
Definition: System.hpp:99