Consumer perform the rotation when extracting a packet
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 14 Dec 2017 19:15:57 +0000 (14:15 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 14 Mar 2018 21:53:11 +0000 (17:53 -0400)
commit02d02e31d47c091a38154c9c188c08387902d97b
treeb919704d8dce5bbdc5474ffc5b6febab946553de
parentd73bf3d793ee0b0c5b56cb47cb50c27d1789d3bd
Consumer perform the rotation when extracting a packet

When the consumer reads a subbuffer, it checks if the stream needs to be
rotated before or after writing the data. The post-rotation action must
take place after we have released the stream lock, so we need to add a
flag to the read_subbuffer functions to know if a rotation occurred
while the stream lock was held.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c
src/common/consumer/consumer.h
src/common/kernel-consumer/kernel-consumer.c
src/common/kernel-consumer/kernel-consumer.h
src/common/ust-consumer/ust-consumer.c
src/common/ust-consumer/ust-consumer.h
This page took 0.025416 seconds and 4 git commands to generate.