projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: reverse order of bt_self_component_port_input_message_iterator::auto_seek_msgs...
[babeltrace.git]
/
src
/
lib
/
graph
/
iterator.c
diff --git
a/src/lib/graph/iterator.c
b/src/lib/graph/iterator.c
index a72611f6907622521ec3d95228c8ee39b756e930..b6117e125c05b36110ca7db4921fffefd1d64e6c 100644
(file)
--- a/
src/lib/graph/iterator.c
+++ b/
src/lib/graph/iterator.c
@@
-1141,7
+1141,7
@@
skip_msg:
goto end;
push_msg:
goto end;
push_msg:
- g_queue_push_
head
(iterator->auto_seek_msgs, (void *) msg);
+ g_queue_push_
tail
(iterator->auto_seek_msgs, (void *) msg);
msg = NULL;
end:
msg = NULL;
end:
@@
-1210,7
+1210,7
@@
enum bt_message_iterator_status find_message_ge_ns_from_origin(
for (i = 0; i < user_count; i++) {
if (got_first) {
for (i = 0; i < user_count; i++) {
if (got_first) {
- g_queue_push_
head
(iterator->auto_seek_msgs,
+ g_queue_push_
tail
(iterator->auto_seek_msgs,
(void *) messages[i]);
messages[i] = NULL;
continue;
(void *) messages[i]);
messages[i] = NULL;
continue;
@@
-1252,7
+1252,7
@@
enum bt_self_message_iterator_status post_auto_seek_next(
* iterator's base message array).
*/
while (capacity > 0 && !g_queue_is_empty(iterator->auto_seek_msgs)) {
* iterator's base message array).
*/
while (capacity > 0 && !g_queue_is_empty(iterator->auto_seek_msgs)) {
- msgs[*count] = g_queue_pop_
tail
(iterator->auto_seek_msgs);
+ msgs[*count] = g_queue_pop_
head
(iterator->auto_seek_msgs);
capacity--;
(*count)++;
}
capacity--;
(*count)++;
}
This page took
0.024788 seconds
and
4
git commands to generate.