#
# The value returned by the callable is returned by run_in_component_init.
+
def run_in_component_init(func):
class MySink(bt2._UserSinkComponent):
def __init__(self, params):
def _consume(self):
pass
+ def _graph_is_configured(self):
+ pass
+
g = bt2.Graph()
res_bound = None
g.add_component(MySink, 'comp')
del res_bound
return res
+
# Create an empty trace class with default values.
+
def get_default_trace_class():
def f(comp_self):
return comp_self._create_trace_class()