Simulate buffer usage in notification thread
[lttng-tools.git] / src / common / condition.c
index 5c3c11c237570d3039feb1a01ca3464cb1ef66f1..4a24202fed6f851e309344471e3664d599045f42 100644 (file)
@@ -131,3 +131,11 @@ ssize_t lttng_condition_create_from_buffer(const char *buf,
 end:
        return ret;
 }
+
+LTTNG_HIDDEN
+void lttng_condition_init(struct lttng_condition *condition,
+               enum lttng_condition_type type)
+{
+       condition->type = type;
+       CDS_INIT_LIST_HEAD(&condition->list_node);
+}
This page took 0.02364 seconds and 5 git commands to generate.