Live: let read API detect inactive streams, allow streams without fd
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 12 Dec 2013 20:32:34 +0000 (15:32 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 13 Dec 2013 17:43:44 +0000 (12:43 -0500)
commit500634bebf68d5a018f2d9c36a104b8706f59818
treeb88036a2f3855245d13df43899428b10b1843a74
parente67a221d91eb0cc4627e37c4e0d7cfb7506200d6
Live: let read API detect inactive streams, allow streams without fd

In live streaming, there are cases where a stream will be inactive from
beginning to end and so will never call bt_iter_next. For those cases,
we have to detect when we are reading an inactive stream which happens
when all other active streams have been closed.

We don't want to have the same checks in two places, so this fix removes
the return of EAGAIN in bt_iter_next and instead returns a NULL event
with the new BT_ITER_FLAG_RETRY flag set.

Also, handle cases where streams and traces have no associated file
descriptors.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c
formats/ctf/iterator.c
include/babeltrace/ctf/types.h
include/babeltrace/iterator.h
lib/iterator.c
This page took 0.02469 seconds and 4 git commands to generate.