Use priority heap to order by timestamp
[babeltrace.git] / include / babeltrace / ctf / metadata.h
index e3cd325ae8aa6637b51c971541176b7f4f230a2a..453c9f7085276de0b4ba5eb6798b475f5d6d7363 100644 (file)
@@ -96,6 +96,9 @@ struct ctf_trace {
        DIR *dir;
        int dirfd;
        int flags;              /* open flags */
+
+       /* Heap of streams, ordered to always get the lowest timestam */
+       struct ptr_heap *stream_heap;
 };
 
 #define CTF_STREAM_SET_FIELD(ctf_stream, field)                                \
@@ -194,5 +197,4 @@ struct metadata_packet_header {
        HEADER_END;
 };
 
-
 #endif /* _BABELTRACE_CTF_METADATA_H */
This page took 0.02279 seconds and 4 git commands to generate.