Freeze bt_clock_class_priority_map in related notifications
[babeltrace.git] / include / babeltrace / graph / clock-class-priority-map-internal.h
index 57c6c86a84699619fc696e7ea2a96756c4424ea9..3cba2bb9ce2b84bc68f7686f1d2cc45f11ab2942 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <stdint.h>
 #include <stddef.h>
+#include <stdbool.h>
+#include <assert.h>
 #include <babeltrace/ctf-ir/clock-class.h>
 #include <babeltrace/object-internal.h>
 #include <glib.h>
@@ -43,6 +45,16 @@ struct bt_clock_class_priority_map {
 
        /* Clock class (weak) with the currently highest priority */
        struct bt_ctf_clock_class *highest_prio_cc;
+
+       bool frozen;
 };
 
+static inline
+void bt_clock_class_priority_map_freeze(
+               struct bt_clock_class_priority_map *cc_prio_map)
+{
+       assert(cc_prio_map);
+       cc_prio_map->frozen = true;
+}
+
 #endif /* BABELTRACE_GRAPH_CLOCK_CLASS_PRIORITY_MAP_INTERNAL_H */
This page took 0.023465 seconds and 4 git commands to generate.