Move add data stream to the data thread
authorDavid Goulet <dgoulet@efficios.com>
Thu, 11 Oct 2012 19:22:59 +0000 (15:22 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 19 Oct 2012 16:49:01 +0000 (12:49 -0400)
commitc869f647b0c4476645ab9ee01e362401fb8c1e42
treedd78751e55bcc6d10198cd1f0d87a4fc103cc50c
parent7d980def5ddfddbaa6b8d3c7c1acee3537ae80bb
Move add data stream to the data thread

As a second step of refactoring, upon receiving a data stream, we send
it to the data thread that is now in charge of handling it.

The ustctl_* calls are moved into the on_recv_stream function call
executed once the stream is allocated and fds have been received. This
also fits with the kernel consumer which mmap the buffers in the
on_recv_stream call.

This commit should speed up the add stream process for the session
daemon. There is still some actions to move out of the session daemon
poll thread to significantly gain speed, especially for network
streaming.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c
src/common/consumer.h
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c
This page took 0.026557 seconds and 4 git commands to generate.