"iterator is in the wrong state: %!+i", iterator);
BT_ASSERT(iterator->upstream_component);
BT_ASSERT(iterator->upstream_component->class);
+ BT_ASSERT_PRE(bt_component_borrow_graph(iterator->upstream_component)->is_configured,
+ "Graph is not configured: %!+g",
+ bt_component_borrow_graph(iterator->upstream_component));
BT_LIB_LOGD("Getting next self component input port "
"message iterator's messages: %!+i", iterator);
comp_cls = iterator->upstream_component->class;
BT_LIB_LOGD("Getting next output port message iterator's messages: "
"%!+i", iterator);
+ /*
+ * As soon as the user calls this function, we mark the graph as
+ * being definitely configured.
+ */
+ bt_graph_set_is_configured(iterator->graph, true);
+
graph_status = bt_graph_consume_sink_no_check(iterator->graph,
iterator->colander);
switch (graph_status) {