X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fclock-class-priority-map-internal.h;h=be6a9953d06872ac7bad7a41ba503ff48f061706;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hp=049421458c0d7b64d551adff169e157b31a316f1;hpb=7b5d7f76ccd2b17bb721a57ba4762dd3aa17db0f;p=babeltrace.git diff --git a/include/babeltrace/graph/clock-class-priority-map-internal.h b/include/babeltrace/graph/clock-class-priority-map-internal.h index 04942145..be6a9953 100644 --- a/include/babeltrace/graph/clock-class-priority-map-internal.h +++ b/include/babeltrace/graph/clock-class-priority-map-internal.h @@ -28,33 +28,39 @@ #include #include -#include -#include +#include #include #include +#include #include struct bt_clock_class_priority_map { struct bt_object base; - /* Array of struct bt_ctf_clock_class *, owned by this */ + /* Array of struct bt_clock_class *, owned by this */ GPtrArray *entries; - /* struct bt_ctf_clock_class * (weak) to priority (uint64_t *) */ + /* struct bt_clock_class * (weak) to priority (uint64_t *) */ GHashTable *prios; /* Clock class (weak) with the currently highest priority */ - struct bt_ctf_clock_class *highest_prio_cc; + struct bt_clock_class *highest_prio_cc; - bool frozen; + bt_bool frozen; }; static inline -void bt_clock_class_priority_map_freeze( +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; + BT_ASSERT(cc_prio_map); + cc_prio_map->frozen = BT_TRUE; } +#ifdef BT_DEV_MODE +# define bt_clock_class_priority_map_freeze _bt_clock_class_priority_map_freeze +#else +# define bt_clock_class_priority_map_freeze(_cc_prio_map) +#endif /* BT_DEV_MODE */ + #endif /* BABELTRACE_GRAPH_CLOCK_CLASS_PRIORITY_MAP_INTERNAL_H */